pub struct DataRetentionPolicyCreate {
pub display_name: String,
pub post_duration: i32,
pub team_ids: Option<Vec<String>>,
pub channel_ids: Option<Vec<String>>,
}Fields§
§display_name: StringThe display name for this retention policy.
post_duration: i32The number of days a message will be retained before being deleted by this policy. If this value is less than 0, the policy has infinite retention (i.e. messages are never deleted).
team_ids: Option<Vec<String>>The IDs of the teams to which this policy should be applied.
channel_ids: Option<Vec<String>>The IDs of the channels to which this policy should be applied.
Implementations§
Source§impl DataRetentionPolicyCreate
impl DataRetentionPolicyCreate
pub fn new( display_name: String, post_duration: i32, ) -> DataRetentionPolicyCreate
Trait Implementations§
Source§impl Clone for DataRetentionPolicyCreate
impl Clone for DataRetentionPolicyCreate
Source§fn clone(&self) -> DataRetentionPolicyCreate
fn clone(&self) -> DataRetentionPolicyCreate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DataRetentionPolicyCreate
impl Debug for DataRetentionPolicyCreate
Source§impl Default for DataRetentionPolicyCreate
impl Default for DataRetentionPolicyCreate
Source§fn default() -> DataRetentionPolicyCreate
fn default() -> DataRetentionPolicyCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DataRetentionPolicyCreate
impl<'de> Deserialize<'de> for DataRetentionPolicyCreate
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
impl StructuralPartialEq for DataRetentionPolicyCreate
Auto Trait Implementations§
impl Freeze for DataRetentionPolicyCreate
impl RefUnwindSafe for DataRetentionPolicyCreate
impl Send for DataRetentionPolicyCreate
impl Sync for DataRetentionPolicyCreate
impl Unpin for DataRetentionPolicyCreate
impl UnsafeUnpin for DataRetentionPolicyCreate
impl UnwindSafe for DataRetentionPolicyCreate
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