pub struct SendTextOutcome {
pub mutation: MessageMutation,
pub chat_id: InlineId,
pub message_id: Option<InlineId>,
pub message: Option<MessageRecord>,
pub state: TransactionState,
pub failure: Option<ClientFailure>,
}Expand description
Outcome from a text-send operation.
Fields§
§mutation: MessageMutationClient mutation acknowledgement.
chat_id: InlineIdChat containing the message.
message_id: Option<InlineId>Final message ID, when known.
message: Option<MessageRecord>Message record applied to the client store, when known.
state: TransactionStateDurable transaction state after the send attempt.
failure: Option<ClientFailure>Redacted failure, when the transaction failed.
Implementations§
Source§impl SendTextOutcome
impl SendTextOutcome
Sourcepub fn new(
mutation: MessageMutation,
chat_id: InlineId,
message_id: Option<InlineId>,
) -> Self
pub fn new( mutation: MessageMutation, chat_id: InlineId, message_id: Option<InlineId>, ) -> Self
Creates a text-send outcome.
Sourcepub fn with_state(
mutation: MessageMutation,
chat_id: InlineId,
message_id: Option<InlineId>,
message: Option<MessageRecord>,
state: TransactionState,
failure: Option<ClientFailure>,
) -> Self
pub fn with_state( mutation: MessageMutation, chat_id: InlineId, message_id: Option<InlineId>, message: Option<MessageRecord>, state: TransactionState, failure: Option<ClientFailure>, ) -> Self
Creates a text-send outcome with an explicit transaction state.
Sourcepub fn transaction_event(&self) -> TransactionEvent
pub fn transaction_event(&self) -> TransactionEvent
Returns a transaction event for this send outcome.
Trait Implementations§
Source§impl Clone for SendTextOutcome
impl Clone for SendTextOutcome
Source§fn clone(&self) -> SendTextOutcome
fn clone(&self) -> SendTextOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SendTextOutcome
impl Debug for SendTextOutcome
impl Eq for SendTextOutcome
Source§impl PartialEq for SendTextOutcome
impl PartialEq for SendTextOutcome
impl StructuralPartialEq for SendTextOutcome
Auto Trait Implementations§
impl Freeze for SendTextOutcome
impl RefUnwindSafe for SendTextOutcome
impl Send for SendTextOutcome
impl Sync for SendTextOutcome
impl Unpin for SendTextOutcome
impl UnsafeUnpin for SendTextOutcome
impl UnwindSafe for SendTextOutcome
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