pub struct ClassificationConfig {
pub enforce: bool,
pub dynamic_groups: bool,
pub dynamic_groups_type: DynamicGroupType,
pub levels: Vec<ClassificationLevel>,
pub required: Vec<ClassificationMarking>,
pub groups: Vec<ClassificationGroup>,
pub subgroups: Vec<ClassificationSubGroup>,
pub restricted: String,
pub unrestricted: String,
}Expand description
A description of the configuration block used by assemblyline for classification schemes
Fields§
§enforce: boolTurn on/off classification enforcement. When this flag is off, this completely disables the classification engine, any documents added while the classification engine is off gets the default unrestricted value
dynamic_groups: boolTurn on/off dynamic group creation. This feature allow you to dynamically create classification groups based on features from the user.
dynamic_groups_type: DynamicGroupTypeSet the type of dynamic groups to be used
levels: Vec<ClassificationLevel>List of Classification level. Graded list were a smaller number is less restricted then an higher number.
required: Vec<ClassificationMarking>List of required tokens: A user requesting access to an item must have all the required tokens the item has to gain access to it
groups: Vec<ClassificationGroup>List of groups: A user requesting access to an item must be part of a least of one the group the item is part of to gain access
subgroups: Vec<ClassificationSubGroup>List of subgroups: A user requesting access to an item must be part of a least of one the subgroup the item is part of to gain access
restricted: StringDefault restricted classification
unrestricted: StringDefault unrestricted classification. When no classification are provided or that the classification engine is disabled, this is the classification value each items will get
Trait Implementations§
Source§impl Clone for ClassificationConfig
impl Clone for ClassificationConfig
Source§fn clone(&self) -> ClassificationConfig
fn clone(&self) -> ClassificationConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClassificationConfig
impl Debug for ClassificationConfig
Source§impl Default for ClassificationConfig
impl Default for ClassificationConfig
Source§fn default() -> ClassificationConfig
fn default() -> ClassificationConfig
Source§impl<'de> Deserialize<'de> for ClassificationConfig
impl<'de> Deserialize<'de> for ClassificationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ClassificationConfig
impl PartialEq for ClassificationConfig
Source§impl Serialize for ClassificationConfig
impl Serialize for ClassificationConfig
impl StructuralPartialEq for ClassificationConfig
Auto Trait Implementations§
impl Freeze for ClassificationConfig
impl RefUnwindSafe for ClassificationConfig
impl Send for ClassificationConfig
impl Sync for ClassificationConfig
impl Unpin for ClassificationConfig
impl UnwindSafe for ClassificationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more