pub trait CreateDto: Serialize {
type Id: PaperlessId;
type BaseType: DeserializeOwned;
}Expand description
Marker trait for DTOs used to create new items.
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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".