Struct frankenstein::api_params::InputMediaPhoto
source · pub struct InputMediaPhoto {
pub media: FileUpload,
pub caption: Option<String>,
pub parse_mode: Option<ParseMode>,
pub caption_entities: Option<Vec<MessageEntity>>,
pub has_spoiler: Option<bool>,
}
Fields§
§media: FileUpload
§parse_mode: Option<ParseMode>
§has_spoiler: Option<bool>
Implementations§
source§impl InputMediaPhoto
impl InputMediaPhoto
sourcepub fn builder() -> InputMediaPhotoBuilder<((), (), (), (), ())>
pub fn builder() -> InputMediaPhotoBuilder<((), (), (), (), ())>
Create a builder for building InputMediaPhoto
.
On the builder, call .media(...)
, .caption(...)
(optional), .parse_mode(...)
(optional), .caption_entities(...)
(optional), .has_spoiler(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of InputMediaPhoto
.
Trait Implementations§
source§impl Clone for InputMediaPhoto
impl Clone for InputMediaPhoto
source§fn clone(&self) -> InputMediaPhoto
fn clone(&self) -> InputMediaPhoto
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 InputMediaPhoto
impl Debug for InputMediaPhoto
source§impl<'de> Deserialize<'de> for InputMediaPhoto
impl<'de> Deserialize<'de> for InputMediaPhoto
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 InputMediaPhoto
impl PartialEq for InputMediaPhoto
source§fn eq(&self, other: &InputMediaPhoto) -> bool
fn eq(&self, other: &InputMediaPhoto) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InputMediaPhoto
impl Serialize for InputMediaPhoto
impl Eq for InputMediaPhoto
impl StructuralPartialEq for InputMediaPhoto
Auto Trait Implementations§
impl Freeze for InputMediaPhoto
impl RefUnwindSafe for InputMediaPhoto
impl Send for InputMediaPhoto
impl Sync for InputMediaPhoto
impl Unpin for InputMediaPhoto
impl UnwindSafe for InputMediaPhoto
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