pub struct AiComposeTone {
pub creator: bool,
pub id: i64,
pub access_hash: i64,
pub slug: String,
pub title: String,
pub emoji_id: Option<i64>,
pub prompt: Option<String>,
pub installs_count: Option<i32>,
pub author_id: Option<i64>,
pub example_english: Option<AiComposeToneExample>,
}Expand description
Generated from:
aiComposeTone#cff63ea9 flags:# creator:flags.0?true id:long access_hash:long slug:string title:string emoji_id:flags.1?long prompt:flags.4?string installs_count:flags.2?int author_id:flags.3?long example_english:flags.5?AiComposeToneExample = AiComposeToneFields§
§creator: bool§id: i64§access_hash: i64§slug: String§title: String§emoji_id: Option<i64>§prompt: Option<String>§installs_count: Option<i32>§example_english: Option<AiComposeToneExample>Trait Implementations§
Source§impl Clone for AiComposeTone
impl Clone for AiComposeTone
Source§fn clone(&self) -> AiComposeTone
fn clone(&self) -> AiComposeTone
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AiComposeTone
impl Debug for AiComposeTone
Source§impl Deserializable for AiComposeTone
impl Deserializable for AiComposeTone
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<AiComposeTone> for AiComposeTone
impl From<AiComposeTone> for AiComposeTone
Source§fn from(x: AiComposeTone) -> Self
fn from(x: AiComposeTone) -> Self
Converts to this type from the input type.
Source§impl Identifiable for AiComposeTone
impl Identifiable for AiComposeTone
Source§const CONSTRUCTOR_ID: u32 = 0xcff63ea9
const CONSTRUCTOR_ID: u32 = 0xcff63ea9
The constructor ID as specified in the TL schema.
Source§impl PartialEq for AiComposeTone
impl PartialEq for AiComposeTone
Source§fn eq(&self, other: &AiComposeTone) -> bool
fn eq(&self, other: &AiComposeTone) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serializable for AiComposeTone
impl Serializable for AiComposeTone
Source§impl TryFrom<AiComposeTone> for AiComposeTone
impl TryFrom<AiComposeTone> for AiComposeTone
Source§type Error = AiComposeTone
type Error = AiComposeTone
The type returned in the event of a conversion error.
impl StructuralPartialEq for AiComposeTone
Auto Trait Implementations§
impl Freeze for AiComposeTone
impl RefUnwindSafe for AiComposeTone
impl Send for AiComposeTone
impl Sync for AiComposeTone
impl Unpin for AiComposeTone
impl UnsafeUnpin for AiComposeTone
impl UnwindSafe for AiComposeTone
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