pub struct DocumentAttributeAudio {
pub voice: bool,
pub duration: i32,
pub title: Option<String>,
pub performer: Option<String>,
pub waveform: Option<Vec<u8>>,
}Expand description
Generated from:
documentAttributeAudio#9852f9c6 flags:# voice:flags.10?true duration:int title:flags.0?string performer:flags.1?string waveform:flags.2?bytes = DocumentAttributeFields§
§voice: bool§duration: i32§title: Option<String>§performer: Option<String>§waveform: Option<Vec<u8>>Trait Implementations§
Source§impl Clone for DocumentAttributeAudio
impl Clone for DocumentAttributeAudio
Source§fn clone(&self) -> DocumentAttributeAudio
fn clone(&self) -> DocumentAttributeAudio
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 DocumentAttributeAudio
impl Debug for DocumentAttributeAudio
Source§impl Deserializable for DocumentAttributeAudio
impl Deserializable for DocumentAttributeAudio
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<DocumentAttributeAudio> for DocumentAttribute
impl From<DocumentAttributeAudio> for DocumentAttribute
Source§fn from(x: DocumentAttributeAudio) -> Self
fn from(x: DocumentAttributeAudio) -> Self
Converts to this type from the input type.
Source§impl Identifiable for DocumentAttributeAudio
impl Identifiable for DocumentAttributeAudio
Source§const CONSTRUCTOR_ID: u32 = 0x9852f9c6
const CONSTRUCTOR_ID: u32 = 0x9852f9c6
The constructor ID as specified in the TL schema.
Source§impl PartialEq for DocumentAttributeAudio
impl PartialEq for DocumentAttributeAudio
Source§impl TryFrom<DocumentAttribute> for DocumentAttributeAudio
impl TryFrom<DocumentAttribute> for DocumentAttributeAudio
Source§type Error = DocumentAttribute
type Error = DocumentAttribute
The type returned in the event of a conversion error.
impl StructuralPartialEq for DocumentAttributeAudio
Auto Trait Implementations§
impl Freeze for DocumentAttributeAudio
impl RefUnwindSafe for DocumentAttributeAudio
impl Send for DocumentAttributeAudio
impl Sync for DocumentAttributeAudio
impl Unpin for DocumentAttributeAudio
impl UnsafeUnpin for DocumentAttributeAudio
impl UnwindSafe for DocumentAttributeAudio
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