Struct bonsaidb::core::schema::Schematic[][src]

pub struct Schematic {
    pub name: SchemaName,
    // some fields omitted
}
Expand description

A collection of defined collections and views.

Fields

name: SchemaName

The name of the schema this was built from.

Implementations

Returns an initialized version from S.

Adds the collection C and its views.

Adds the view V.

Adds the view V.

Returns true if this schema contains the collection C.

Returns true if this schema contains the collection C.

Returns the next id in sequence for the collection, if the primary key type supports the operation and the next id would not overflow.

Looks up a view::Serialized by name.

Looks up a view::Serialized through the the type V.

Iterates over all registered views.

Iterates over all views that belong to collection.

Iterates over all views that are unique that belong to collection.

Returns a collection’s default encryption key, if one was defined.

Returns a list of all collections contained in this schematic.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more