pub enum LinkOrIri {
Iri(Iri),
Hashtag(Box<Hashtag>),
Link(Box<Link>),
Mention(Box<Mention>),
Other(Value),
}Expand description
A value of Iri, Link, or of a type extending one of them.
Variants§
Iri(Iri)
A reference, by IRI.
Hashtag(Box<Hashtag>)
Link(Box<Link>)
Mention(Box<Mention>)
Other(Value)
Anything no schema describes, as it was.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LinkOrIri
impl<'de> Deserialize<'de> for LinkOrIri
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
impl StructuralPartialEq for LinkOrIri
Auto Trait Implementations§
impl Freeze for LinkOrIri
impl RefUnwindSafe for LinkOrIri
impl Send for LinkOrIri
impl Sync for LinkOrIri
impl Unpin for LinkOrIri
impl UnsafeUnpin for LinkOrIri
impl UnwindSafe for LinkOrIri
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