pub struct AccessSettings {
pub restricted: bool,
pub add_users: Option<Vec<User>>,
}Expand description
Generated from:
bots.accessSettings#dd1fbf93 flags:# restricted:flags.0?true add_users:flags.1?Vector<User> = bots.AccessSettingsFields§
§restricted: bool§add_users: Option<Vec<User>>Trait Implementations§
Source§impl Clone for AccessSettings
impl Clone for AccessSettings
Source§fn clone(&self) -> AccessSettings
fn clone(&self) -> AccessSettings
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 AccessSettings
impl Debug for AccessSettings
Source§impl Deserializable for AccessSettings
impl Deserializable for AccessSettings
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<AccessSettings> for AccessSettings
impl From<AccessSettings> for AccessSettings
Source§fn from(x: AccessSettings) -> Self
fn from(x: AccessSettings) -> Self
Converts to this type from the input type.
Source§impl Identifiable for AccessSettings
impl Identifiable for AccessSettings
Source§const CONSTRUCTOR_ID: u32 = 0xdd1fbf93
const CONSTRUCTOR_ID: u32 = 0xdd1fbf93
The constructor ID as specified in the TL schema.
Source§impl PartialEq for AccessSettings
impl PartialEq for AccessSettings
Source§fn eq(&self, other: &AccessSettings) -> bool
fn eq(&self, other: &AccessSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serializable for AccessSettings
impl Serializable for AccessSettings
Source§impl TryFrom<AccessSettings> for AccessSettings
impl TryFrom<AccessSettings> for AccessSettings
Source§type Error = AccessSettings
type Error = AccessSettings
The type returned in the event of a conversion error.
impl StructuralPartialEq for AccessSettings
Auto Trait Implementations§
impl Freeze for AccessSettings
impl RefUnwindSafe for AccessSettings
impl Send for AccessSettings
impl Sync for AccessSettings
impl Unpin for AccessSettings
impl UnsafeUnpin for AccessSettings
impl UnwindSafe for AccessSettings
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