Skip to main content

OrgSource

Trait OrgSource 

Source
pub trait OrgSource:
    Send
    + Sync
    + 'static {
    // Required method
    fn organization_id(
        parts: &mut Parts,
    ) -> impl Future<Output = Result<Option<Id>, AuthError>> + Send;
}
Expand description

Where an extractor finds the organization.

Required Methods§

Source

fn organization_id( parts: &mut Parts, ) -> impl Future<Output = Result<Option<Id>, AuthError>> + Send

The organization id, or None for the session’s active organization.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§