pub enum AnyCollection {
Iri(Iri),
Collection(Box<Collection>),
CollectionPage(Box<CollectionPage>),
FeaturedCollection(Box<FeaturedCollection>),
OrderedCollection(Box<OrderedCollection>),
OrderedCollectionPage(Box<OrderedCollectionPage>),
Other(Value),
}Expand description
A value of Collection, or of a type extending one of them.
Variants§
Iri(Iri)
A reference, by IRI.
Collection(Box<Collection>)
CollectionPage(Box<CollectionPage>)
FeaturedCollection(Box<FeaturedCollection>)
OrderedCollection(Box<OrderedCollection>)
OrderedCollectionPage(Box<OrderedCollectionPage>)
Other(Value)
Anything no schema describes, as it was.
Implementations§
Trait Implementations§
Source§impl Clone for AnyCollection
impl Clone for AnyCollection
Source§fn clone(&self) -> AnyCollection
fn clone(&self) -> AnyCollection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnyCollection
impl Debug for AnyCollection
Source§impl<'de> Deserialize<'de> for AnyCollection
impl<'de> Deserialize<'de> for AnyCollection
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromJson for AnyCollection
impl FromJson for AnyCollection
Source§impl PartialEq for AnyCollection
impl PartialEq for AnyCollection
Source§impl Serialize for AnyCollection
impl Serialize for AnyCollection
impl StructuralPartialEq for AnyCollection
Auto Trait Implementations§
impl Freeze for AnyCollection
impl RefUnwindSafe for AnyCollection
impl Send for AnyCollection
impl Sync for AnyCollection
impl Unpin for AnyCollection
impl UnsafeUnpin for AnyCollection
impl UnwindSafe for AnyCollection
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