pub struct MessagePhoto {
pub photo: Photo,
pub caption: FormattedText,
pub is_secret: bool,
}
Expand description
A photo message
Fields§
§photo: Photo
Message content
caption: FormattedText
Photo caption
is_secret: bool
True, if the photo must be blurred and must be shown only while tapped
Trait Implementations§
Source§impl Clone for MessagePhoto
impl Clone for MessagePhoto
Source§fn clone(&self) -> MessagePhoto
fn clone(&self) -> MessagePhoto
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 MessagePhoto
impl Debug for MessagePhoto
Source§impl<'de> Deserialize<'de> for MessagePhoto
impl<'de> Deserialize<'de> for MessagePhoto
Source§fn 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
Auto Trait Implementations§
impl Freeze for MessagePhoto
impl RefUnwindSafe for MessagePhoto
impl Send for MessagePhoto
impl Sync for MessagePhoto
impl Unpin for MessagePhoto
impl UnwindSafe for MessagePhoto
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