Trait kanidmd_lib::schema::SchemaTransaction
source · [−]pub trait SchemaTransaction {
fn get_classes(&self) -> &HashMap<AttrString, SchemaClass>;
fn get_attributes(&self) -> &HashMap<AttrString, SchemaAttribute>;
fn get_attributes_unique(&self) -> &Vec<AttrString>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
;
fn get_reference_types(&self) -> &HashMap<AttrString, SchemaAttribute>;
fn validate(&self) -> Vec<Result<(), ConsistencyError>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
{ ... }
fn is_multivalue(&self, attr: &str) -> Result<bool, SchemaError> { ... }
fn normalise_attr_name(&self, an: &str) -> AttrString { ... }
fn normalise_attr_if_exists(&self, an: &str) -> Option<AttrString> { ... }
fn query_attrs_difference(
&self,
prev_class: &BTreeSet<&str>,
new_class: &BTreeSet<&str>
) -> Result<(BTreeSet<&str>, BTreeSet<&str>), SchemaError> { ... }
}
Required Methods
source
fn get_classes(&self) -> &HashMap<AttrString, SchemaClass>
source
fn get_attributes(&self) -> &HashMap<AttrString, SchemaAttribute>
sourcefn get_attributes_unique(&self) -> &Vec<AttrString>ⓘNotable traits for Vec<u8, A>
fn get_attributes_unique(&self) -> &Vec<AttrString>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
source
fn get_reference_types(&self) -> &HashMap<AttrString, SchemaAttribute>
Provided Methods
sourcefn validate(&self) -> Vec<Result<(), ConsistencyError>>ⓘNotable traits for Vec<u8, A>
fn validate(&self) -> Vec<Result<(), ConsistencyError>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
source
fn is_multivalue(&self, attr: &str) -> Result<bool, SchemaError>
source
fn normalise_attr_name(&self, an: &str) -> AttrString
source