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