Skip to main content

Instance

Trait Instance 

Source
pub trait Instance: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn api_url(&self) -> &str;
}

Required Methods§

Source

fn id(&self) -> &str

Source

fn api_url(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§