pub struct Schematic {
    pub name: SchemaName,
    /* private fields */
}
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 eagerly updated 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

Returns the argument unchanged.

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

Calls U::from(self).

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

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