Struct command::membership::PolicyUpdate
zaun_community_protocol::command::membership::PolicyUpdate · Struct
pub struct PolicyUpdate { … }admission.policy.update: any policy field. Every field is non-nullable.
Fields
Section titled “Fields”level: Patch<PolicyLevel>
Section titled “level: Patch<PolicyLevel>”A preset (fills the other fields) or custom.
requires_approval: Patch<bool>
Section titled “requires_approval: Patch<bool>”Joins start pending.
waiting_period_s: Patch<u64>
Section titled “waiting_period_s: Patch<u64>”s.
probation_period_s: Patch<u64>
Section titled “probation_period_s: Patch<u64>”s.
probation_activity_min: Patch<u32>
Section titled “probation_activity_min: Patch<u32>”Messages or reactions during probation.
newcomer_restrictions: Patch<Permissions>
Section titled “newcomer_restrictions: Patch<Permissions>”Known bits; never VIEW_CHANNEL/READ_MESSAGE_HISTORY.
join_rate: Patch<JoinRate>
Section titled “join_rate: Patch<JoinRate>”Aggregate admission rate.
pending_expiry_s: Patch<u64>
Section titled “pending_expiry_s: Patch<u64>”1 s – 30 days.
invite_creation: Patch<InviteCreation>
Section titled “invite_creation: Patch<InviteCreation>”Who may create invitations.
verification: Patch<Vec<Value>>
Section titled “verification: Patch<Vec<Value>>”Reserved; MUST be empty in v1.
Trait implementations
Section titled “Trait implementations”Body, Clone, Debug, Default, Deserialize<'de>, Eq, PartialEq, Serialize, StructuralPartialEq, Validate