Skip to main content

Item

Trait Item 

Source
pub trait Item {
    type Id: PaperlessId;
    type BaseType: DeserializeOwned;
    type CreateDto: CreateDtoObject;
    type UpdateDto: UpdateDtoObject;

    // Required methods
    fn endpoint() -> &'static str;
    fn id(&self) -> Self::Id;
}

Required Associated Types§

Required Methods§

Source

fn endpoint() -> &'static str

Source

fn id(&self) -> Self::Id

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§