pub struct StarGiftAttributeModel {
pub crafted: bool,
pub name: String,
pub document: Document,
pub rarity: StarGiftAttributeRarity,
}Expand description
Generated from:
starGiftAttributeModel#565251e2 flags:# crafted:flags.0?true name:string document:Document rarity:StarGiftAttributeRarity = StarGiftAttributeFields§
§crafted: bool§name: String§document: Document§rarity: StarGiftAttributeRarityTrait Implementations§
Source§impl Clone for StarGiftAttributeModel
impl Clone for StarGiftAttributeModel
Source§fn clone(&self) -> StarGiftAttributeModel
fn clone(&self) -> StarGiftAttributeModel
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 StarGiftAttributeModel
impl Debug for StarGiftAttributeModel
Source§impl Deserializable for StarGiftAttributeModel
impl Deserializable for StarGiftAttributeModel
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<StarGiftAttributeModel> for StarGiftAttribute
impl From<StarGiftAttributeModel> for StarGiftAttribute
Source§fn from(x: StarGiftAttributeModel) -> Self
fn from(x: StarGiftAttributeModel) -> Self
Converts to this type from the input type.
Source§impl Identifiable for StarGiftAttributeModel
impl Identifiable for StarGiftAttributeModel
Source§const CONSTRUCTOR_ID: u32 = 0x565251e2
const CONSTRUCTOR_ID: u32 = 0x565251e2
The constructor ID as specified in the TL schema.
Source§impl PartialEq for StarGiftAttributeModel
impl PartialEq for StarGiftAttributeModel
Source§impl TryFrom<StarGiftAttribute> for StarGiftAttributeModel
impl TryFrom<StarGiftAttribute> for StarGiftAttributeModel
Source§type Error = StarGiftAttribute
type Error = StarGiftAttribute
The type returned in the event of a conversion error.
impl StructuralPartialEq for StarGiftAttributeModel
Auto Trait Implementations§
impl Freeze for StarGiftAttributeModel
impl RefUnwindSafe for StarGiftAttributeModel
impl Send for StarGiftAttributeModel
impl Sync for StarGiftAttributeModel
impl Unpin for StarGiftAttributeModel
impl UnsafeUnpin for StarGiftAttributeModel
impl UnwindSafe for StarGiftAttributeModel
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