Skip to main content

Expandable

Trait Expandable 

Source
pub trait Expandable:
    Sized
    + EntityTypeRef
    + Send
    + Sync
    + 'static
    + for<'a> Deserialize<'a> {
    // Provided method
    fn expand<B>(
        &self,
        bmc: &B,
        query: ExpandQuery,
    ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
       where B: Bmc { ... }
}
Expand description

Defines entity types that support $expand via query parameters.

Provided Methods§

Source

fn expand<B>( &self, bmc: &B, query: ExpandQuery, ) -> impl Future<Output = Result<Arc<Self>, <B as Bmc>::Error>> + Send
where B: Bmc,

Expand the entity according to the provided query.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§