Skip to main content

AuthOrganization

Trait AuthOrganization 

Source
pub trait AuthOrganization:
    Clone
    + Send
    + Sync
    + Serialize
    + Debug
    + 'static {
    // Required methods
    fn id(&self) -> Cow<'_, str>;
    fn name(&self) -> &str;
    fn slug(&self) -> &str;
    fn logo(&self) -> Option<&str>;
    fn metadata(&self) -> Option<&Value>;
    fn created_at(&self) -> DateTime<Utc>;

    // Provided method
    fn additional_fields(&self) -> BTreeMap<String, Value> { ... }
}
Expand description

Trait representing an organization entity.

Required Methods§

Source

fn id(&self) -> Cow<'_, str>

Source

fn name(&self) -> &str

Source

fn slug(&self) -> &str

Source

fn metadata(&self) -> Option<&Value>

Source

fn created_at(&self) -> DateTime<Utc>

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§