pub enum Uuid<M> {
    V3(M, UuidString),
    V4(M),
    V5(M, UuidString),
}
Expand description

Generates UUID blank node identifiers based on the uuid crate.

This is an enum type with different UUID versions supported by the uuid library, so you can choose which kind of UUID better fits your application. Version 1 is not supported.

You need to enable the uuid-generator feature to use this type. You also need to enable the features of each version you need in the uuid crate.

Variants

V3(M, UuidString)

UUIDv3.

You must provide a vocabulary UUID and a name. See [uuid::Uuid::new_v3] for more information.

V4(M)

UUIDv4.

See [uuid::Uuid::new_v4] for more information.

V5(M, UuidString)

UUIDv5.

You must provide a vocabulary UUID and a name. See [uuid::Uuid::new_v5] for more information.

Implementations

Trait Implementations

Generates a new unique blank node identifier.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Wraps self inside a Meta<Self, M> using the given metadata. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The target type of the conversion, which can be borrowed as a Id<T, B>.
Convert the value into a reference.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.