pub struct TranslateRichMessage {
pub peer: Option<InputPeer>,
pub id: Option<Vec<i32>>,
pub text: Option<Vec<InputRichMessage>>,
pub to_lang: String,
pub tone: Option<String>,
}Expand description
Generated from:
messages.translateRichMessage#1a542004 flags:# peer:flags.0?InputPeer id:flags.0?Vector<int> text:flags.1?Vector<InputRichMessage> to_lang:string tone:flags.2?string = messages.TranslatedRichMessageFields§
§peer: Option<InputPeer>§id: Option<Vec<i32>>§text: Option<Vec<InputRichMessage>>§to_lang: String§tone: Option<String>Trait Implementations§
Source§impl Clone for TranslateRichMessage
impl Clone for TranslateRichMessage
Source§fn clone(&self) -> TranslateRichMessage
fn clone(&self) -> TranslateRichMessage
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 TranslateRichMessage
impl Debug for TranslateRichMessage
Source§impl Deserializable for TranslateRichMessage
impl Deserializable for TranslateRichMessage
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 Identifiable for TranslateRichMessage
impl Identifiable for TranslateRichMessage
Source§const CONSTRUCTOR_ID: u32 = 0x1a542004
const CONSTRUCTOR_ID: u32 = 0x1a542004
The constructor ID as specified in the TL schema.
Source§impl PartialEq for TranslateRichMessage
impl PartialEq for TranslateRichMessage
Source§impl RemoteCall for TranslateRichMessage
impl RemoteCall for TranslateRichMessage
Source§type Return = TranslatedRichMessage
type Return = TranslatedRichMessage
The deserialized response type.
Source§impl Serializable for TranslateRichMessage
impl Serializable for TranslateRichMessage
impl StructuralPartialEq for TranslateRichMessage
Auto Trait Implementations§
impl Freeze for TranslateRichMessage
impl RefUnwindSafe for TranslateRichMessage
impl Send for TranslateRichMessage
impl Sync for TranslateRichMessage
impl Unpin for TranslateRichMessage
impl UnsafeUnpin for TranslateRichMessage
impl UnwindSafe for TranslateRichMessage
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