pub struct SchemaClass {
    pub name: AttrString,
    pub uuid: Uuid,
    pub description: String,
    pub sync_allowed: bool,
    pub systemmay: Vec<AttrString>,
    pub may: Vec<AttrString>,
    pub systemmust: Vec<AttrString>,
    pub must: Vec<AttrString>,
    pub systemsupplements: Vec<AttrString>,
    pub supplements: Vec<AttrString>,
    pub systemexcludes: Vec<AttrString>,
    pub excludes: Vec<AttrString>,
}
Expand description

An item representing a class and the rules for that class. These rules enforce that an Entry’s avas conform to a set of requirements, giving structure to an entry about what avas must or may exist. The kanidm project provides attributes in systemmust and systemmay, which can not be altered. An administrator may extend these in the must and may attributes.

Classes are additive, meaning that if there are two classes, the may rules of both union, and that if an attribute is must on one class, and may in another, the must rule takes precedence. It is not possible to combine classes in an incompatible way due to these rules.

That in mind, and entry that has one of every possible class would probably be nonsensical, but the addition rules make it easy to construct and understand with concepts like access controls or accounts and posix extensions.

Fields§

§name: AttrString§uuid: Uuid§description: String§sync_allowed: bool§systemmay: Vec<AttrString>

This allows modification of system types to be extended in custom ways

§may: Vec<AttrString>§systemmust: Vec<AttrString>§must: Vec<AttrString>§systemsupplements: Vec<AttrString>

A list of classes that this extends. These are an “or”, as at least one of the supplementing classes must also be present. Think of this as “inherits toward” or “provides”. This is just as “strict” as requires but operates in the opposite direction allowing a tree structure.

§supplements: Vec<AttrString>§systemexcludes: Vec<AttrString>

A list of classes that can not co-exist with this item at the same time.

§excludes: Vec<AttrString>

Implementations§

An iterator over the full set of attrs that may or must exist on this class.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.

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.

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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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