pub struct Link {
pub iri: String,
pub rel: Option<String>,
pub lang: Option<String>,
}Expand description
link related to specification metadata, with optional relationship and language tag
Fields§
§iri: StringURI/IRI of link target
rel: Option<String>relationship of link to schema (self, documentation)
lang: Option<String>BCP 47 language tag
Trait Implementations§
Source§impl<S> Decode<S> for Linkwhere
S: ErrorSpan,
impl<S> Decode<S> for Linkwhere
S: ErrorSpan,
Source§fn decode_node(
node: &SpannedNode<S>,
ctx: &mut Context<S>,
) -> Result<Self, DecodeError<S>>
fn decode_node( node: &SpannedNode<S>, ctx: &mut Context<S>, ) -> Result<Self, DecodeError<S>>
Decodes the node from the ast
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnwindSafe for Link
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