pub struct LifecycleRule {Show 14 fields
pub id: Uuid,
pub name: String,
pub content_type: ContentTypeEnum,
pub object_id: Option<Option<String>>,
pub interval: Option<String>,
pub grace_period: Option<String>,
pub reviewer_groups: Option<Vec<Uuid>>,
pub reviewer_groups_obj: Vec<ReviewerGroup>,
pub min_reviewers: Option<u16>,
pub min_reviewers_is_per_group: Option<bool>,
pub reviewers: Vec<Uuid>,
pub reviewers_obj: Vec<ReviewerUser>,
pub notification_transports: Option<Vec<Uuid>>,
pub target_verbose: String,
}Expand description
LifecycleRule : Mixin to validate that a valid enterprise license exists before allowing to save the object
Fields§
§id: Uuid§name: String§content_type: ContentTypeEnum§object_id: Option<Option<String>>§interval: Option<String>§grace_period: Option<String>§reviewer_groups: Option<Vec<Uuid>>§reviewer_groups_obj: Vec<ReviewerGroup>§min_reviewers: Option<u16>§min_reviewers_is_per_group: Option<bool>§reviewers: Vec<Uuid>§reviewers_obj: Vec<ReviewerUser>§notification_transports: Option<Vec<Uuid>>Select which transports should be used to notify the reviewers. If none are selected, the notification will only be shown in the authentik UI.
target_verbose: StringImplementations§
Source§impl LifecycleRule
impl LifecycleRule
Sourcepub fn new(
id: Uuid,
name: String,
content_type: ContentTypeEnum,
reviewer_groups_obj: Vec<ReviewerGroup>,
reviewers: Vec<Uuid>,
reviewers_obj: Vec<ReviewerUser>,
target_verbose: String,
) -> LifecycleRule
pub fn new( id: Uuid, name: String, content_type: ContentTypeEnum, reviewer_groups_obj: Vec<ReviewerGroup>, reviewers: Vec<Uuid>, reviewers_obj: Vec<ReviewerUser>, target_verbose: String, ) -> LifecycleRule
Mixin to validate that a valid enterprise license exists before allowing to save the object
Trait Implementations§
Source§impl Clone for LifecycleRule
impl Clone for LifecycleRule
Source§fn clone(&self) -> LifecycleRule
fn clone(&self) -> LifecycleRule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifecycleRule
impl Debug for LifecycleRule
Source§impl Default for LifecycleRule
impl Default for LifecycleRule
Source§fn default() -> LifecycleRule
fn default() -> LifecycleRule
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LifecycleRule
impl<'de> Deserialize<'de> for LifecycleRule
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LifecycleRule
impl PartialEq for LifecycleRule
Source§impl Serialize for LifecycleRule
impl Serialize for LifecycleRule
impl StructuralPartialEq for LifecycleRule
Auto Trait Implementations§
impl Freeze for LifecycleRule
impl RefUnwindSafe for LifecycleRule
impl Send for LifecycleRule
impl Sync for LifecycleRule
impl Unpin for LifecycleRule
impl UnsafeUnpin for LifecycleRule
impl UnwindSafe for LifecycleRule
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
Mutably borrows from an owned value. Read more