pub struct ContentSettings {
pub sensitive_enabled: bool,
pub sensitive_can_change: bool,
}Expand description
Generated from:
account.contentSettings#57e28221 flags:# sensitive_enabled:flags.0?true sensitive_can_change:flags.1?true = account.ContentSettingsFields§
§sensitive_enabled: bool§sensitive_can_change: boolTrait Implementations§
Source§impl Clone for ContentSettings
impl Clone for ContentSettings
Source§fn clone(&self) -> ContentSettings
fn clone(&self) -> ContentSettings
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 ContentSettings
impl Debug for ContentSettings
Source§impl Deserializable for ContentSettings
impl Deserializable for ContentSettings
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<ContentSettings> for ContentSettings
impl From<ContentSettings> for ContentSettings
Source§fn from(x: ContentSettings) -> Self
fn from(x: ContentSettings) -> Self
Converts to this type from the input type.
Source§impl Identifiable for ContentSettings
impl Identifiable for ContentSettings
Source§const CONSTRUCTOR_ID: u32 = 0x57e28221
const CONSTRUCTOR_ID: u32 = 0x57e28221
The constructor ID as specified in the TL schema.
Source§impl PartialEq for ContentSettings
impl PartialEq for ContentSettings
Source§impl Serializable for ContentSettings
impl Serializable for ContentSettings
Source§impl TryFrom<ContentSettings> for ContentSettings
impl TryFrom<ContentSettings> for ContentSettings
Source§type Error = ContentSettings
type Error = ContentSettings
The type returned in the event of a conversion error.
impl StructuralPartialEq for ContentSettings
Auto Trait Implementations§
impl Freeze for ContentSettings
impl RefUnwindSafe for ContentSettings
impl Send for ContentSettings
impl Sync for ContentSettings
impl Unpin for ContentSettings
impl UnsafeUnpin for ContentSettings
impl UnwindSafe for ContentSettings
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