pub struct RestrictionReason {
pub platform: String,
pub reason: String,
pub text: String,
}Expand description
Generated from:
restrictionReason#d072acb4 platform:string reason:string text:string = RestrictionReasonFields§
§platform: String§reason: String§text: StringTrait Implementations§
Source§impl Clone for RestrictionReason
impl Clone for RestrictionReason
Source§fn clone(&self) -> RestrictionReason
fn clone(&self) -> RestrictionReason
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 RestrictionReason
impl Debug for RestrictionReason
Source§impl Deserializable for RestrictionReason
impl Deserializable for RestrictionReason
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<RestrictionReason> for RestrictionReason
impl From<RestrictionReason> for RestrictionReason
Source§fn from(x: RestrictionReason) -> Self
fn from(x: RestrictionReason) -> Self
Converts to this type from the input type.
Source§impl Identifiable for RestrictionReason
impl Identifiable for RestrictionReason
Source§const CONSTRUCTOR_ID: u32 = 0xd072acb4
const CONSTRUCTOR_ID: u32 = 0xd072acb4
The constructor ID as specified in the TL schema.
Source§impl PartialEq for RestrictionReason
impl PartialEq for RestrictionReason
Source§impl Serializable for RestrictionReason
impl Serializable for RestrictionReason
Source§impl TryFrom<RestrictionReason> for RestrictionReason
impl TryFrom<RestrictionReason> for RestrictionReason
Source§type Error = RestrictionReason
type Error = RestrictionReason
The type returned in the event of a conversion error.
impl StructuralPartialEq for RestrictionReason
Auto Trait Implementations§
impl Freeze for RestrictionReason
impl RefUnwindSafe for RestrictionReason
impl Send for RestrictionReason
impl Sync for RestrictionReason
impl Unpin for RestrictionReason
impl UnsafeUnpin for RestrictionReason
impl UnwindSafe for RestrictionReason
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