pub struct SendChecklist {
pub business_connection_id: BusinessConnectionId,
pub chat_id: ChatId,
pub checklist: InputChecklist,
pub disable_notification: Option<bool>,
pub protect_content: Option<bool>,
pub message_effect_id: Option<EffectId>,
pub reply_parameters: Option<ReplyParameters>,
pub reply_markup: Option<ReplyMarkup>,
}Expand description
Use this method to send a checklist on behalf of a connected business account. On success, the sent Message is returned.
Fields§
§business_connection_id: BusinessConnectionIdUnique identifier of the business connection on behalf of which the message will be sent
chat_id: ChatIdUnique identifier for the target chat
checklist: InputChecklistChecklist to send
disable_notification: Option<bool>Sends the message silently. Users will receive a notification with no sound
protect_content: Option<bool>Protects the contents of sent messages from forwarding and saving
message_effect_id: Option<EffectId>Unique identifier of the message effect to be added to the message
reply_parameters: Option<ReplyParameters>Description of the message to reply to
reply_markup: Option<ReplyMarkup>An inline keyboard
Implementations§
Source§impl SendChecklist
impl SendChecklist
pub fn new( business_connection_id: BusinessConnectionId, chat_id: impl Into<ChatId>, checklist: InputChecklist, ) -> SendChecklist ⓘ
Trait Implementations§
Source§impl Clone for SendChecklist
impl Clone for SendChecklist
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 SendChecklist
impl Debug for SendChecklist
Source§impl Hash for SendChecklist
impl Hash for SendChecklist
Source§impl PartialEq for SendChecklist
impl PartialEq for SendChecklist
Source§impl Payload for SendChecklist
impl Payload for SendChecklist
Source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates with
big timeout), the minimum timeout that should be used.Source§impl Serialize for SendChecklist
impl Serialize for SendChecklist
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SendChecklist
impl StructuralPartialEq for SendChecklist
Auto Trait Implementations§
impl Freeze for SendChecklist
impl RefUnwindSafe for SendChecklist
impl Send for SendChecklist
impl Sync for SendChecklist
impl Unpin for SendChecklist
impl UnwindSafe for SendChecklist
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
Source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
Gain mutable access to the underlying payload.
Source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
Gain immutable access to the underlying payload.
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<P> SendChecklistSetters for Pwhere
P: HasPayload<Payload = SendChecklist>,
impl<P> SendChecklistSetters for Pwhere
P: HasPayload<Payload = SendChecklist>,
Source§fn business_connection_id(self, value: BusinessConnectionId) -> Self
fn business_connection_id(self, value: BusinessConnectionId) -> Self
Setter for
business_connection_id field.Source§fn checklist(self, value: InputChecklist) -> Self
fn checklist(self, value: InputChecklist) -> Self
Setter for
checklist field.Source§fn disable_notification(self, value: bool) -> Self
fn disable_notification(self, value: bool) -> Self
Setter for
disable_notification field.Source§fn protect_content(self, value: bool) -> Self
fn protect_content(self, value: bool) -> Self
Setter for
protect_content field.Source§fn message_effect_id(self, value: EffectId) -> Self
fn message_effect_id(self, value: EffectId) -> Self
Setter for
message_effect_id field.Source§fn reply_parameters(self, value: ReplyParameters) -> Self
fn reply_parameters(self, value: ReplyParameters) -> Self
Setter for
reply_parameters field.Source§fn reply_markup<T>(self, value: T) -> Selfwhere
T: Into<ReplyMarkup>,
fn reply_markup<T>(self, value: T) -> Selfwhere
T: Into<ReplyMarkup>,
Setter for
reply_markup field.