Skip to main content

AuthOrganization

Trait AuthOrganization 

Source
pub trait AuthOrganization:
    Clone
    + Send
    + Sync
    + Serialize
    + Debug
    + 'static {
    // Required methods
    fn id(&self) -> &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>;
    fn updated_at(&self) -> DateTime<Utc>;
}
Expand description

Trait representing an organization entity.

Required Methods§

Source

fn id(&self) -> &str

Source

fn name(&self) -> &str

Source

fn slug(&self) -> &str

Source

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

Source

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

Source

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

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§