pub struct PeerNotifySettings {
pub show_previews: Option<bool>,
pub silent: Option<bool>,
pub mute_until: Option<i32>,
pub ios_sound: Option<NotificationSound>,
pub android_sound: Option<NotificationSound>,
pub other_sound: Option<NotificationSound>,
pub stories_muted: Option<bool>,
pub stories_hide_sender: Option<bool>,
pub stories_ios_sound: Option<NotificationSound>,
pub stories_android_sound: Option<NotificationSound>,
pub stories_other_sound: Option<NotificationSound>,
}Expand description
Generated from:
peerNotifySettings#99622c0c flags:# show_previews:flags.0?Bool silent:flags.1?Bool mute_until:flags.2?int ios_sound:flags.3?NotificationSound android_sound:flags.4?NotificationSound other_sound:flags.5?NotificationSound stories_muted:flags.6?Bool stories_hide_sender:flags.7?Bool stories_ios_sound:flags.8?NotificationSound stories_android_sound:flags.9?NotificationSound stories_other_sound:flags.10?NotificationSound = PeerNotifySettingsFields§
§show_previews: Option<bool>§silent: Option<bool>§mute_until: Option<i32>§ios_sound: Option<NotificationSound>§android_sound: Option<NotificationSound>§other_sound: Option<NotificationSound>§stories_muted: Option<bool>§stories_hide_sender: Option<bool>§stories_ios_sound: Option<NotificationSound>§stories_android_sound: Option<NotificationSound>§stories_other_sound: Option<NotificationSound>Trait Implementations§
Source§impl Clone for PeerNotifySettings
impl Clone for PeerNotifySettings
Source§fn clone(&self) -> PeerNotifySettings
fn clone(&self) -> PeerNotifySettings
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 PeerNotifySettings
impl Debug for PeerNotifySettings
Source§impl Deserializable for PeerNotifySettings
impl Deserializable for PeerNotifySettings
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<PeerNotifySettings> for PeerNotifySettings
impl From<PeerNotifySettings> for PeerNotifySettings
Source§fn from(x: PeerNotifySettings) -> Self
fn from(x: PeerNotifySettings) -> Self
Converts to this type from the input type.
Source§impl Identifiable for PeerNotifySettings
impl Identifiable for PeerNotifySettings
Source§const CONSTRUCTOR_ID: u32 = 0x99622c0c
const CONSTRUCTOR_ID: u32 = 0x99622c0c
The constructor ID as specified in the TL schema.
Source§impl PartialEq for PeerNotifySettings
impl PartialEq for PeerNotifySettings
Source§impl Serializable for PeerNotifySettings
impl Serializable for PeerNotifySettings
Source§impl TryFrom<PeerNotifySettings> for PeerNotifySettings
impl TryFrom<PeerNotifySettings> for PeerNotifySettings
Source§type Error = PeerNotifySettings
type Error = PeerNotifySettings
The type returned in the event of a conversion error.
impl StructuralPartialEq for PeerNotifySettings
Auto Trait Implementations§
impl Freeze for PeerNotifySettings
impl RefUnwindSafe for PeerNotifySettings
impl Send for PeerNotifySettings
impl Sync for PeerNotifySettings
impl Unpin for PeerNotifySettings
impl UnsafeUnpin for PeerNotifySettings
impl UnwindSafe for PeerNotifySettings
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