pub trait Item {
type Id: PaperlessId;
type BaseType: DeserializeOwned;
// Required methods
fn endpoint() -> &'static str;
fn id(&self) -> Self::Id;
}Expand description
Trait for items that can be managed via the Paperless API.
Required Associated Types§
Sourcetype Id: PaperlessId
type Id: PaperlessId
The ID type for this item.
Sourcetype BaseType: DeserializeOwned
type BaseType: DeserializeOwned
The base type for the DTO.
Required Methods§
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.