#[non_exhaustive]pub enum Extension<E = ()> {
Shared(SharedExtension),
External(E),
Unknown(Value),
}Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Defines a sharing relationship of Collection or Item between different user
accounts or groups.
External(E)
External extensions defined by the implementor of this crate.
Unknown(Value)
Unknown extension
Trait Implementations§
Source§impl<'de, E> Deserialize<'de> for Extension<E>where
E: Deserialize<'de>,
impl<'de, E> Deserialize<'de> for Extension<E>where
E: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<E: Eq> Eq for Extension<E>
impl<E> StructuralPartialEq for Extension<E>
Auto Trait Implementations§
impl<E> Freeze for Extension<E>where
E: Freeze,
impl<E> RefUnwindSafe for Extension<E>where
E: RefUnwindSafe,
impl<E> Send for Extension<E>where
E: Send,
impl<E> Sync for Extension<E>where
E: Sync,
impl<E> Unpin for Extension<E>where
E: Unpin,
impl<E> UnwindSafe for Extension<E>where
E: UnwindSafe,
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