pub struct WallPaperSettings {
pub blur: bool,
pub motion: bool,
pub background_color: Option<i32>,
pub second_background_color: Option<i32>,
pub third_background_color: Option<i32>,
pub fourth_background_color: Option<i32>,
pub intensity: Option<i32>,
pub rotation: Option<i32>,
pub emoticon: Option<String>,
}Expand description
Generated from:
wallPaperSettings#372efcd0 flags:# blur:flags.1?true motion:flags.2?true background_color:flags.0?int second_background_color:flags.4?int third_background_color:flags.5?int fourth_background_color:flags.6?int intensity:flags.3?int rotation:flags.4?int emoticon:flags.7?string = WallPaperSettingsFields§
§blur: bool§motion: bool§background_color: Option<i32>§second_background_color: Option<i32>§third_background_color: Option<i32>§fourth_background_color: Option<i32>§intensity: Option<i32>§rotation: Option<i32>§emoticon: Option<String>Trait Implementations§
Source§impl Clone for WallPaperSettings
impl Clone for WallPaperSettings
Source§fn clone(&self) -> WallPaperSettings
fn clone(&self) -> WallPaperSettings
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 WallPaperSettings
impl Debug for WallPaperSettings
Source§impl Deserializable for WallPaperSettings
impl Deserializable for WallPaperSettings
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<WallPaperSettings> for WallPaperSettings
impl From<WallPaperSettings> for WallPaperSettings
Source§fn from(x: WallPaperSettings) -> Self
fn from(x: WallPaperSettings) -> Self
Converts to this type from the input type.
Source§impl Identifiable for WallPaperSettings
impl Identifiable for WallPaperSettings
Source§const CONSTRUCTOR_ID: u32 = 0x372efcd0
const CONSTRUCTOR_ID: u32 = 0x372efcd0
The constructor ID as specified in the TL schema.
Source§impl PartialEq for WallPaperSettings
impl PartialEq for WallPaperSettings
Source§impl Serializable for WallPaperSettings
impl Serializable for WallPaperSettings
Source§impl TryFrom<WallPaperSettings> for WallPaperSettings
impl TryFrom<WallPaperSettings> for WallPaperSettings
Source§type Error = WallPaperSettings
type Error = WallPaperSettings
The type returned in the event of a conversion error.
impl StructuralPartialEq for WallPaperSettings
Auto Trait Implementations§
impl Freeze for WallPaperSettings
impl RefUnwindSafe for WallPaperSettings
impl Send for WallPaperSettings
impl Sync for WallPaperSettings
impl Unpin for WallPaperSettings
impl UnsafeUnpin for WallPaperSettings
impl UnwindSafe for WallPaperSettings
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