pub struct ChanAcl {
pub apply_here: Option<bool>,
pub apply_subs: Option<bool>,
pub inherited: Option<bool>,
pub user_id: Option<u32>,
pub group: Option<String>,
pub grant: Option<u32>,
pub deny: Option<u32>,
}Fields§
§apply_here: Option<bool>True if this ACL applies to the current channel.
apply_subs: Option<bool>True if this ACL applies to the sub channels.
inherited: Option<bool>True if the ACL has been inherited from the parent.
user_id: Option<u32>ID of the user that is affected by this ACL.
group: Option<String>ID of the group that is affected by this ACL.
grant: Option<u32>Bit flag field of the permissions granted by this ACL.
deny: Option<u32>Bit flag field of the permissions denied by this ACL.
Implementations§
Source§impl ChanAcl
impl ChanAcl
Sourcepub fn apply_here(&self) -> bool
pub fn apply_here(&self) -> bool
Returns the value of apply_here, or the default value if apply_here is unset.
Sourcepub fn apply_subs(&self) -> bool
pub fn apply_subs(&self) -> bool
Returns the value of apply_subs, or the default value if apply_subs is unset.
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 user_id(&self) -> u32
pub fn user_id(&self) -> u32
Returns the value of user_id, or the default value if user_id is unset.
Trait Implementations§
Source§impl Message for ChanAcl
impl Message for ChanAcl
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 ChanAcl
Auto Trait Implementations§
impl Freeze for ChanAcl
impl RefUnwindSafe for ChanAcl
impl Send for ChanAcl
impl Sync for ChanAcl
impl Unpin for ChanAcl
impl UnwindSafe for ChanAcl
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