Enum json_ld::Reference [−][src]
Expand description
Node reference.
Used to reference a node across a document or to a remote document. It can be an identifier (IRI) or a blank node identifier for local blank nodes.
Variants
Node identifier, essentially an IRI.
Blank(BlankId)
Blank node identifier.
Tuple Fields of Blank
0: BlankId
Invalid(String)
Invalid reference.
Tuple Fields of Invalid
0: String
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
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