pub trait Item: DeserializeOwned {
type Id: ItemId;
// Required method
fn id(&self) -> Self::Id;
// Provided method
fn endpoint() -> &'static str { ... }
}Expand description
Trait for items that can be managed via the Paperless API.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".