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