Expand description
Node reference.
Used to reference a node across a document or to a remote document. It can be an identifier (IRI), a blank node identifier for local blank nodes or an invalid reference (a string that is neither an IRI nor blank node identifier).
Variants
Id(T)
Node identifier, essentially an IRI.
Blank(BlankId)
Blank node identifier.
Invalid(String)
Invalid reference.
Implementations
Checks if this is a valid reference.
Returns true
is this reference is a node identifier or a blank node identifier,
false
otherwise.
Get a string representation of the reference.
This will either return a string slice of an IRI, or a blank node identifier.
If the renference is a node identifier, returns the node IRI.
Returns None
if it is a blank node reference.
Trait Implementations
Converts this value into a K
JSON value using the given
meta
function to convert J::MetaData
into K::MetaData
. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Reference<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Reference<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more