pub struct PolicyUpdate {
pub level: Patch<PolicyLevel>,
pub requires_approval: Patch<bool>,
pub waiting_period_s: Patch<u64>,
pub probation_period_s: Patch<u64>,
pub probation_activity_min: Patch<u32>,
pub newcomer_restrictions: Patch<Permissions>,
pub join_rate: Patch<JoinRate>,
pub pending_expiry_s: Patch<u64>,
pub invite_creation: Patch<InviteCreation>,
pub verification: Patch<Vec<Value>>,
}Expand description
admission.policy.update (§8.9): any policy field. Every field is non-nullable.
Fields§
§level: Patch<PolicyLevel>A preset (fills the other fields) or custom.
requires_approval: Patch<bool>Joins start pending.
waiting_period_s: Patch<u64>s.
probation_period_s: Patch<u64>s.
probation_activity_min: Patch<u32>Messages or reactions during probation.
newcomer_restrictions: Patch<Permissions>Known bits; never VIEW_CHANNEL/READ_MESSAGE_HISTORY.
join_rate: Patch<JoinRate>Aggregate admission rate.
pending_expiry_s: Patch<u64>1 s – 30 days.
invite_creation: Patch<InviteCreation>Who may create invitations.
verification: Patch<Vec<Value>>Reserved (§8.11); MUST be empty in v1.
Trait Implementations§
Source§impl Body for PolicyUpdate
impl Body for PolicyUpdate
Source§impl Clone for PolicyUpdate
impl Clone for PolicyUpdate
Source§fn clone(&self) -> PolicyUpdate
fn clone(&self) -> PolicyUpdate
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 PolicyUpdate
impl Debug for PolicyUpdate
Source§impl Default for PolicyUpdate
impl Default for PolicyUpdate
Source§fn default() -> PolicyUpdate
fn default() -> PolicyUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PolicyUpdate
impl<'de> Deserialize<'de> for PolicyUpdate
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 Eq for PolicyUpdate
Source§impl PartialEq for PolicyUpdate
impl PartialEq for PolicyUpdate
Source§impl Serialize for PolicyUpdate
impl Serialize for PolicyUpdate
impl StructuralPartialEq for PolicyUpdate
Source§impl Validate for PolicyUpdate
impl Validate for PolicyUpdate
Auto Trait Implementations§
impl Freeze for PolicyUpdate
impl RefUnwindSafe for PolicyUpdate
impl Send for PolicyUpdate
impl Sync for PolicyUpdate
impl Unpin for PolicyUpdate
impl UnsafeUnpin for PolicyUpdate
impl UnwindSafe for PolicyUpdate
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