pub struct InputPeerNotifySettings {
pub show_previews: Option<bool>,
pub silent: Option<bool>,
pub mute_until: Option<i32>,
pub sound: Option<NotificationSound>,
pub stories_muted: Option<bool>,
pub stories_hide_sender: Option<bool>,
pub stories_sound: Option<NotificationSound>,
}Expand description
Generated from:
inputPeerNotifySettings#cacb6ae2 flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int sound:flags.3?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_sound:flags.8?NotificationSound = InputPeerNotifySettingsFields§
§show_previews: Option<bool>§silent: Option<bool>§mute_until: Option<i32>§sound: Option<NotificationSound>§stories_muted: Option<bool>§stories_hide_sender: Option<bool>§stories_sound: Option<NotificationSound>Trait Implementations§
Source§impl Clone for InputPeerNotifySettings
impl Clone for InputPeerNotifySettings
Source§fn clone(&self) -> InputPeerNotifySettings
fn clone(&self) -> InputPeerNotifySettings
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 InputPeerNotifySettings
impl Debug for InputPeerNotifySettings
Source§impl Deserializable for InputPeerNotifySettings
impl Deserializable for InputPeerNotifySettings
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<InputPeerNotifySettings> for InputPeerNotifySettings
impl From<InputPeerNotifySettings> for InputPeerNotifySettings
Source§fn from(x: InputPeerNotifySettings) -> Self
fn from(x: InputPeerNotifySettings) -> Self
Converts to this type from the input type.
Source§impl Identifiable for InputPeerNotifySettings
impl Identifiable for InputPeerNotifySettings
Source§const CONSTRUCTOR_ID: u32 = 0xcacb6ae2
const CONSTRUCTOR_ID: u32 = 0xcacb6ae2
The constructor ID as specified in the TL schema.
Source§impl PartialEq for InputPeerNotifySettings
impl PartialEq for InputPeerNotifySettings
Source§impl TryFrom<InputPeerNotifySettings> for InputPeerNotifySettings
impl TryFrom<InputPeerNotifySettings> for InputPeerNotifySettings
Source§type Error = InputPeerNotifySettings
type Error = InputPeerNotifySettings
The type returned in the event of a conversion error.
impl StructuralPartialEq for InputPeerNotifySettings
Auto Trait Implementations§
impl Freeze for InputPeerNotifySettings
impl RefUnwindSafe for InputPeerNotifySettings
impl Send for InputPeerNotifySettings
impl Sync for InputPeerNotifySettings
impl Unpin for InputPeerNotifySettings
impl UnsafeUnpin for InputPeerNotifySettings
impl UnwindSafe for InputPeerNotifySettings
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