fuel_core::query

Trait MessageQueryData

source
pub trait MessageQueryData: Send + Sync {
    // Required methods
    fn message(&self, message_id: &Nonce) -> StorageResult<Message>;
    fn owned_message_ids(
        &self,
        owner: &Address,
        start_message_id: Option<Nonce>,
        direction: IterDirection,
    ) -> BoxedIter<'_, StorageResult<Nonce>>;
    fn owned_messages(
        &self,
        owner: &Address,
        start_message_id: Option<Nonce>,
        direction: IterDirection,
    ) -> BoxedIter<'_, StorageResult<Message>>;
    fn all_messages(
        &self,
        start_message_id: Option<Nonce>,
        direction: IterDirection,
    ) -> BoxedIter<'_, StorageResult<Message>>;
}

Required Methods§

source

fn message(&self, message_id: &Nonce) -> StorageResult<Message>

source

fn owned_message_ids( &self, owner: &Address, start_message_id: Option<Nonce>, direction: IterDirection, ) -> BoxedIter<'_, StorageResult<Nonce>>

source

fn owned_messages( &self, owner: &Address, start_message_id: Option<Nonce>, direction: IterDirection, ) -> BoxedIter<'_, StorageResult<Message>>

source

fn all_messages( &self, start_message_id: Option<Nonce>, direction: IterDirection, ) -> BoxedIter<'_, StorageResult<Message>>

Implementors§