Struct slack_morphism_models::SlackMessageSender[][src]

pub struct SlackMessageSender {
    pub user: Option<SlackUserId>,
    pub bot_id: Option<SlackBotId>,
    pub username: Option<String>,
}

Fields

user: Option<SlackUserId>bot_id: Option<SlackBotId>username: Option<String>

Implementations

impl SlackMessageSender[src]

pub fn new() -> Self[src]

pub fn user(&mut self, value: SlackUserId) -> &mut Self[src]

pub fn reset_user(&mut self) -> &mut Self[src]

pub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self[src]

pub fn with_user(self, value: SlackUserId) -> Self[src]

pub fn without_user(self) -> Self[src]

pub fn opt_user(self, value: Option<SlackUserId>) -> Self[src]

pub fn bot_id(&mut self, value: SlackBotId) -> &mut Self[src]

pub fn reset_bot_id(&mut self) -> &mut Self[src]

pub fn mopt_bot_id(&mut self, value: Option<SlackBotId>) -> &mut Self[src]

pub fn with_bot_id(self, value: SlackBotId) -> Self[src]

pub fn without_bot_id(self) -> Self[src]

pub fn opt_bot_id(self, value: Option<SlackBotId>) -> Self[src]

pub fn username(&mut self, value: String) -> &mut Self[src]

pub fn reset_username(&mut self) -> &mut Self[src]

pub fn mopt_username(&mut self, value: Option<String>) -> &mut Self[src]

pub fn with_username(self, value: String) -> Self[src]

pub fn without_username(self) -> Self[src]

pub fn opt_username(self, value: Option<String>) -> Self[src]

Trait Implementations

impl Clone for SlackMessageSender[src]

impl Debug for SlackMessageSender[src]

impl<'de> Deserialize<'de> for SlackMessageSender[src]

impl From<SlackMessageSenderInit> for SlackMessageSender[src]

impl PartialEq<SlackMessageSender> for SlackMessageSender[src]

impl Serialize for SlackMessageSender[src]

impl StructuralPartialEq for SlackMessageSender[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.