pub struct ClassificationSubGroup {
pub aliases: Vec<NameString>,
pub auto_select: bool,
pub description: String,
pub name: NameString,
pub short_name: NameString,
pub require_group: Option<NameString>,
pub limited_to_group: Option<NameString>,
pub is_hidden: bool,
}Expand description
A subgroup granted access to an object
Fields§
§aliases: Vec<NameString>List of alternate names for the current marking
auto_select: boolThis is a special flag that when set to true, if any groups are selected in a classification. This group will automatically be selected too. (optional)
description: StringLong form description of marking
name: NameStringLong form canonical name of marking
short_name: NameStringShort form canonical name of marking
require_group: Option<NameString>This is a special flag that auto-select the corresponding group when this subgroup is selected (optional)
limited_to_group: Option<NameString>This is a special flag that makes sure that none other then the corresponding group is selected when this subgroup is selected (optional)
Should the marking be skipped building UI options
Implementations§
Source§impl ClassificationSubGroup
impl ClassificationSubGroup
Sourcepub fn new_aliased(short_name: &str, name: &str, aliases: Vec<&str>) -> Self
pub fn new_aliased(short_name: &str, name: &str, aliases: Vec<&str>) -> Self
Create a new subgroup with aliases
Sourcepub fn new_with_required(short_name: &str, name: &str, required: &str) -> Self
pub fn new_with_required(short_name: &str, name: &str, required: &str) -> Self
create a new subgroup with required group
Sourcepub fn new_with_limited(short_name: &str, name: &str, limited: &str) -> Self
pub fn new_with_limited(short_name: &str, name: &str, limited: &str) -> Self
Create a new subgroup limited in access to a given group
Trait Implementations§
Source§impl Clone for ClassificationSubGroup
impl Clone for ClassificationSubGroup
Source§fn clone(&self) -> ClassificationSubGroup
fn clone(&self) -> ClassificationSubGroup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClassificationSubGroup
impl Debug for ClassificationSubGroup
Source§impl<'de> Deserialize<'de> for ClassificationSubGroup
impl<'de> Deserialize<'de> for ClassificationSubGroup
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 ClassificationSubGroup
impl PartialEq for ClassificationSubGroup
Source§impl Serialize for ClassificationSubGroup
impl Serialize for ClassificationSubGroup
impl StructuralPartialEq for ClassificationSubGroup
Auto Trait Implementations§
impl Freeze for ClassificationSubGroup
impl RefUnwindSafe for ClassificationSubGroup
impl Send for ClassificationSubGroup
impl Sync for ClassificationSubGroup
impl Unpin for ClassificationSubGroup
impl UnwindSafe for ClassificationSubGroup
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