#[non_exhaustive]pub struct DataTypeEntry {
pub type_name: &'static str,
pub capability: &'static str,
pub can_reference_blobs: bool,
pub can_use_for_state_change: bool,
pub supports_history: bool,
pub reference: &'static str,
}Expand description
One row of the “JMAP Data Types” registry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.type_name: &'static strThe data type name, as used in typeNames in Blob/lookup and as a
key in a StateChange object (RFC 8620 §7.1), such as "Email".
capability: &'static strThe capability URI a client puts in using to use the type.
can_reference_blobs: bool“Can Reference Blobs”: whether objects of the type can reference blobs, which makes the type usable in Blob/lookup.
can_use_for_state_change: bool“Can Use for State Change”: whether the type name can appear in a StateChange object.
supports_history: bool“Supports History” (object-history-03 §7.2): whether the history extensions apply to the type.
reference: &'static strThe document that registers the type, such as "RFC 8621" or
"draft-atwood-jmap-chat-00".
Trait Implementations§
Source§impl Clone for DataTypeEntry
impl Clone for DataTypeEntry
impl Copy for DataTypeEntry
Source§impl Debug for DataTypeEntry
impl Debug for DataTypeEntry
impl Eq for DataTypeEntry
Source§impl PartialEq for DataTypeEntry
impl PartialEq for DataTypeEntry
impl StructuralPartialEq for DataTypeEntry
Auto Trait Implementations§
impl Forget for DataTypeEntry
impl Freeze for DataTypeEntry
impl Move for DataTypeEntry
impl RefUnwindSafe for DataTypeEntry
impl Send for DataTypeEntry
impl Sync for DataTypeEntry
impl Unpin for DataTypeEntry
impl UnsafeUnpin for DataTypeEntry
impl UnwindSafe for DataTypeEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more