pub struct BlockingModerationNoticeApi { /* private fields */ }Expand description
Blocking governance notice facade that keeps moderation-related notifications on the app layer.
Implementations§
Source§impl BlockingModerationNoticeApi
impl BlockingModerationNoticeApi
pub fn text( &self, chat_id: impl Into<ChatId>, text: impl Into<String>, ) -> Result<BlockingTextSendBuilder>
pub fn reply( &self, update: &Update, text: impl Into<String>, ) -> Result<BlockingTextSendBuilder>
pub fn for_message( &self, message: &Message, text: impl Into<String>, ) -> Result<BlockingTextSendBuilder>
Trait Implementations§
Source§impl Clone for BlockingModerationNoticeApi
impl Clone for BlockingModerationNoticeApi
Source§fn clone(&self) -> BlockingModerationNoticeApi
fn clone(&self) -> BlockingModerationNoticeApi
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for BlockingModerationNoticeApi
impl !RefUnwindSafe for BlockingModerationNoticeApi
impl Send for BlockingModerationNoticeApi
impl Sync for BlockingModerationNoticeApi
impl Unpin for BlockingModerationNoticeApi
impl UnsafeUnpin for BlockingModerationNoticeApi
impl !UnwindSafe for BlockingModerationNoticeApi
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