pub struct ForwardMessage { /* private fields */ }
Expand description
Use this method to forward messages of any kind.
Implementations
sourceimpl ForwardMessage
impl ForwardMessage
pub fn new<M, F, T>(message: M, from: F, to: T) -> Selfwhere
M: ToMessageId,
F: ToChatRef,
T: ToChatRef,
pub fn disable_notification(&mut self) -> &mut Self
Trait Implementations
sourceimpl Clone for ForwardMessage
impl Clone for ForwardMessage
sourcefn clone(&self) -> ForwardMessage
fn clone(&self) -> ForwardMessage
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 Debug for ForwardMessage
impl Debug for ForwardMessage
sourceimpl PartialEq<ForwardMessage> for ForwardMessage
impl PartialEq<ForwardMessage> for ForwardMessage
sourcefn eq(&self, other: &ForwardMessage) -> bool
fn eq(&self, other: &ForwardMessage) -> bool
sourceimpl PartialOrd<ForwardMessage> for ForwardMessage
impl PartialOrd<ForwardMessage> for ForwardMessage
sourcefn partial_cmp(&self, other: &ForwardMessage) -> Option<Ordering>
fn partial_cmp(&self, other: &ForwardMessage) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl Request for ForwardMessage
impl Request for ForwardMessage
type Type = JsonRequestType<ForwardMessage>
type Response = JsonIdResponse<Message>
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
sourceimpl Serialize for ForwardMessage
impl Serialize for ForwardMessage
impl StructuralPartialEq for ForwardMessage
Auto Trait Implementations
impl RefUnwindSafe for ForwardMessage
impl Send for ForwardMessage
impl Sync for ForwardMessage
impl Unpin for ForwardMessage
impl UnwindSafe for ForwardMessage
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