pub struct MessagePhoto {
pub photo: Photo,
pub caption: FormattedText,
pub has_spoiler: bool,
pub is_secret: bool,
}
Expand description
A photo message
Fields§
§photo: Photo
The photo
caption: FormattedText
Photo caption
has_spoiler: bool
True, if the photo preview must be covered by a spoiler animation
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 copy 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 Default for MessagePhoto
impl Default for MessagePhoto
Source§fn default() -> MessagePhoto
fn default() -> MessagePhoto
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for MessagePhoto
impl PartialEq for MessagePhoto
Source§impl Serialize for MessagePhoto
impl Serialize for MessagePhoto
impl StructuralPartialEq for MessagePhoto
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