Struct json_ld::BlankId [−][src]
pub struct BlankId(_);Expand description
Blank node identifier.
Blank nodes are non-uniquely identified nodes that are local to a JSON-LD document.
{
"@id": "_:node1",
"name": "Local blank node 1",
"knows": {
"name": "Local blank node 2, that needs to refer to local node 1",
"knows": { "@id": "_:node1" }
}
}This type represent a blank node identifier of the form _:name.
It is used by the Reference type to reference blank and non-blank nodes.
Implementations
Create a new blank identifier from a given name.
The created blank node will be of the form _:name.
Get the blank identifier as a string.
This includes the _: prefix.
Use BlankId::name to get the suffix part only.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BlankId
impl UnwindSafe for BlankId
Blanket Implementations
Mutably borrows from an owned value. Read more