Struct rust_tdlib::types::InputMessagePhoto
source · [−]pub struct InputMessagePhoto { /* private fields */ }
Expand description
A photo message
Implementations
sourceimpl InputMessagePhoto
impl InputMessagePhoto
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> InputMessagePhotoBuilder
pub fn photo(&self) -> &InputFile
pub fn thumbnail(&self) -> &InputThumbnail
pub fn added_sticker_file_ids(&self) -> &Vec<i32>
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn caption(&self) -> &FormattedText
pub fn ttl(&self) -> i32
Trait Implementations
sourceimpl AsRef<InputMessagePhoto> for InputMessagePhoto
impl AsRef<InputMessagePhoto> for InputMessagePhoto
sourcefn as_ref(&self) -> &InputMessagePhoto
fn as_ref(&self) -> &InputMessagePhoto
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for InputMessagePhoto
impl Clone for InputMessagePhoto
sourcefn clone(&self) -> InputMessagePhoto
fn clone(&self) -> InputMessagePhoto
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InputMessagePhoto
impl Debug for InputMessagePhoto
sourceimpl Default for InputMessagePhoto
impl Default for InputMessagePhoto
sourcefn default() -> InputMessagePhoto
fn default() -> InputMessagePhoto
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InputMessagePhoto
impl<'de> Deserialize<'de> for InputMessagePhoto
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for InputMessagePhoto
impl Serialize for InputMessagePhoto
impl TDInputMessageContent for InputMessagePhoto
Auto Trait Implementations
impl RefUnwindSafe for InputMessagePhoto
impl Send for InputMessagePhoto
impl Sync for InputMessagePhoto
impl Unpin for InputMessagePhoto
impl UnwindSafe for InputMessagePhoto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more