Struct telegram_types::bot::methods::SendDocument
source · pub struct SendDocument<'a> {
pub chat_id: ChatTarget<'a>,
pub document: File,
pub caption: Option<Cow<'a, str>>,
pub parse_mode: Option<ParseMode>,
pub disable_notification: Option<bool>,
pub reply_to_message_id: Option<MessageId>,
pub reply_markup: Option<ReplyMarkup>,
}
Fields
chat_id: ChatTarget<'a>
document: File
parse_mode: Option<ParseMode>
disable_notification: Option<bool>
reply_to_message_id: Option<MessageId>
reply_markup: Option<ReplyMarkup>
Implementations
sourceimpl<'a> SendDocument<'a>
impl<'a> SendDocument<'a>
pub fn new(chat_id: ChatTarget<'a>, document: File) -> SendDocument<'a>
pub fn parse_mode(self, mode: ParseMode) -> SendDocument<'a>
pub fn reply(self, reply_to_message_id: MessageId) -> SendDocument<'a>
pub fn reply_markup(self, markup: ReplyMarkup) -> Self
Trait Implementations
sourceimpl<'a> Clone for SendDocument<'a>
impl<'a> Clone for SendDocument<'a>
sourcefn clone(&self) -> SendDocument<'a>
fn clone(&self) -> SendDocument<'a>
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 moresourceimpl<'a> Debug for SendDocument<'a>
impl<'a> Debug for SendDocument<'a>
sourceimpl<'de, 'a> Deserialize<'de> for SendDocument<'a>
impl<'de, 'a> Deserialize<'de> for SendDocument<'a>
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<'a> Method for SendDocument<'a>
impl<'a> Method for SendDocument<'a>
sourceimpl<'a> PartialEq<SendDocument<'a>> for SendDocument<'a>
impl<'a> PartialEq<SendDocument<'a>> for SendDocument<'a>
sourcefn eq(&self, other: &SendDocument<'a>) -> bool
fn eq(&self, other: &SendDocument<'a>) -> bool
sourceimpl<'a> Serialize for SendDocument<'a>
impl<'a> Serialize for SendDocument<'a>
impl<'a> Eq for SendDocument<'a>
impl<'a> StructuralEq for SendDocument<'a>
impl<'a> StructuralPartialEq for SendDocument<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for SendDocument<'a>
impl<'a> Send for SendDocument<'a>
impl<'a> Sync for SendDocument<'a>
impl<'a> Unpin for SendDocument<'a>
impl<'a> UnwindSafe for SendDocument<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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