Struct slack_morphism::SlackMessageSender
source · pub struct SlackMessageSender {
pub user: Option<SlackUserId>,
pub bot_id: Option<SlackBotId>,
pub username: Option<String>,
pub display_as_bot: Option<bool>,
}
Fields§
§user: Option<SlackUserId>
§bot_id: Option<SlackBotId>
§username: Option<String>
§display_as_bot: Option<bool>
Implementations§
source§impl SlackMessageSender
impl SlackMessageSender
pub fn new() -> Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn reset_user(&mut self) -> &mut Self
pub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self
pub fn with_user(self, value: SlackUserId) -> Self
pub fn without_user(self) -> Self
pub fn opt_user(self, value: Option<SlackUserId>) -> Self
pub fn bot_id(&mut self, value: SlackBotId) -> &mut Self
pub fn reset_bot_id(&mut self) -> &mut Self
pub fn mopt_bot_id(&mut self, value: Option<SlackBotId>) -> &mut Self
pub fn with_bot_id(self, value: SlackBotId) -> Self
pub fn without_bot_id(self) -> Self
pub fn opt_bot_id(self, value: Option<SlackBotId>) -> Self
pub fn username(&mut self, value: String) -> &mut Self
pub fn reset_username(&mut self) -> &mut Self
pub fn mopt_username(&mut self, value: Option<String>) -> &mut Self
pub fn with_username(self, value: String) -> Self
pub fn without_username(self) -> Self
pub fn opt_username(self, value: Option<String>) -> Self
pub fn display_as_bot(&mut self, value: bool) -> &mut Self
pub fn reset_display_as_bot(&mut self) -> &mut Self
pub fn mopt_display_as_bot(&mut self, value: Option<bool>) -> &mut Self
pub fn with_display_as_bot(self, value: bool) -> Self
pub fn without_display_as_bot(self) -> Self
pub fn opt_display_as_bot(self, value: Option<bool>) -> Self
Trait Implementations§
source§impl Clone for SlackMessageSender
impl Clone for SlackMessageSender
source§fn clone(&self) -> SlackMessageSender
fn clone(&self) -> SlackMessageSender
Returns a copy 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 moresource§impl Debug for SlackMessageSender
impl Debug for SlackMessageSender
source§impl<'de> Deserialize<'de> for SlackMessageSender
impl<'de> Deserialize<'de> for SlackMessageSender
source§fn 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
source§impl From<SlackMessageSenderInit> for SlackMessageSender
impl From<SlackMessageSenderInit> for SlackMessageSender
source§fn from(value: SlackMessageSenderInit) -> Self
fn from(value: SlackMessageSenderInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackMessageSender
impl PartialEq for SlackMessageSender
source§fn eq(&self, other: &SlackMessageSender) -> bool
fn eq(&self, other: &SlackMessageSender) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackMessageSender
impl Serialize for SlackMessageSender
impl StructuralPartialEq for SlackMessageSender
Auto Trait Implementations§
impl RefUnwindSafe for SlackMessageSender
impl Send for SlackMessageSender
impl Sync for SlackMessageSender
impl Unpin for SlackMessageSender
impl UnwindSafe for SlackMessageSender
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