pub struct GroupConfig {
pub max_members: usize,
pub key_rotation_interval: u64,
pub persistent_storage: bool,
pub visibility: GroupVisibility,
pub admin_only_operations: Vec<GroupOperation>,
}Expand description
Configuration for a Phalanx group
Fieldsยง
ยงmax_members: usizeMaximum number of members allowed
key_rotation_interval: u64Key rotation interval in seconds
persistent_storage: boolWhether messages are stored persistently
visibility: GroupVisibilityGroup visibility (public/private/invite-only)
admin_only_operations: Vec<GroupOperation>Admin permissions required for certain operations
Trait Implementationsยง
Sourceยงimpl Clone for GroupConfig
impl Clone for GroupConfig
Sourceยงfn clone(&self) -> GroupConfig
fn clone(&self) -> GroupConfig
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 GroupConfig
impl Debug for GroupConfig
Sourceยงimpl Default for GroupConfig
impl Default for GroupConfig
Sourceยงimpl<'de> Deserialize<'de> for GroupConfig
impl<'de> Deserialize<'de> for GroupConfig
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
Auto Trait Implementationsยง
impl Freeze for GroupConfig
impl RefUnwindSafe for GroupConfig
impl Send for GroupConfig
impl Sync for GroupConfig
impl Unpin for GroupConfig
impl UnwindSafe for GroupConfig
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