pub struct ChanGroup {
pub name: String,
pub inherited: Option<bool>,
pub inherit: Option<bool>,
pub inheritable: Option<bool>,
pub add: Vec<u32>,
pub remove: Vec<u32>,
pub inherited_members: Vec<u32>,
}Fields§
§name: StringName of the channel group, UTF-8 encoded.
inherited: Option<bool>True if the group has been inherited from the parent (Read only).
inherit: Option<bool>True if the group members are inherited.
inheritable: Option<bool>True if the group can be inherited by sub channels.
add: Vec<u32>Users explicitly included in this group, identified by user_id.
remove: Vec<u32>Users explicitly removed from this group in this channel if the group has been inherited, identified by user_id.
inherited_members: Vec<u32>Users inherited, identified by user_id.
Implementations§
Source§impl ChanGroup
impl ChanGroup
Sourcepub fn inherited(&self) -> bool
pub fn inherited(&self) -> bool
Returns the value of inherited, or the default value if inherited is unset.
Sourcepub fn inherit(&self) -> bool
pub fn inherit(&self) -> bool
Returns the value of inherit, or the default value if inherit is unset.
Sourcepub fn inheritable(&self) -> bool
pub fn inheritable(&self) -> bool
Returns the value of inheritable, or the default value if inheritable is unset.
Trait Implementations§
Source§impl Message for ChanGroup
impl Message for ChanGroup
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for ChanGroup
Auto Trait Implementations§
impl Freeze for ChanGroup
impl RefUnwindSafe for ChanGroup
impl Send for ChanGroup
impl Sync for ChanGroup
impl Unpin for ChanGroup
impl UnwindSafe for ChanGroup
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