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
sourceimpl 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
sourceimpl Clone for SlackMessageSender
impl Clone for SlackMessageSender
sourcefn clone(&self) -> SlackMessageSender
fn clone(&self) -> SlackMessageSender
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 SlackMessageSender
impl Debug for SlackMessageSender
sourceimpl<'de> Deserialize<'de> for SlackMessageSender
impl<'de> Deserialize<'de> for SlackMessageSender
sourcefn 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
sourceimpl From<SlackMessageSenderInit> for SlackMessageSender
impl From<SlackMessageSenderInit> for SlackMessageSender
sourcefn from(value: SlackMessageSenderInit) -> Self
fn from(value: SlackMessageSenderInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackMessageSender> for SlackMessageSender
impl PartialEq<SlackMessageSender> for SlackMessageSender
sourcefn eq(&self, other: &SlackMessageSender) -> bool
fn eq(&self, other: &SlackMessageSender) -> bool
sourceimpl 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
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