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