pub struct SlackBotInfo {
pub id: Option<SlackBotId>,
pub name: String,
pub updated: Option<SlackDateTime>,
pub app_id: String,
pub user_id: Option<String>,
pub icons: Option<SlackIconImages>,
}Fields§
§id: Option<SlackBotId>§name: String§updated: Option<SlackDateTime>§app_id: String§user_id: Option<String>§icons: Option<SlackIconImages>Implementations§
Source§impl SlackBotInfo
impl SlackBotInfo
Sourcepub fn new(name: String, app_id: String) -> Self
pub fn new(name: String, app_id: String) -> Self
Creates a new SlackBotInfo from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn id(&mut self, value: SlackBotId) -> &mut Self
pub fn id(&mut self, value: SlackBotId) -> &mut Self
Sets id to Some(value).
Sourcepub fn mopt_id(&mut self, value: Option<SlackBotId>) -> &mut Self
pub fn mopt_id(&mut self, value: Option<SlackBotId>) -> &mut Self
Sets id to the given Option.
Sourcepub fn with_id(self, value: SlackBotId) -> Self
pub fn with_id(self, value: SlackBotId) -> Self
Returns self with id set to Some(value).
Sourcepub fn without_id(self) -> Self
pub fn without_id(self) -> Self
Returns self with id set to None.
Sourcepub fn opt_id(self, value: Option<SlackBotId>) -> Self
pub fn opt_id(self, value: Option<SlackBotId>) -> Self
Returns self with id set to the given Option.
Sourcepub fn updated(&mut self, value: SlackDateTime) -> &mut Self
pub fn updated(&mut self, value: SlackDateTime) -> &mut Self
Sets updated to Some(value).
Sourcepub fn reset_updated(&mut self) -> &mut Self
pub fn reset_updated(&mut self) -> &mut Self
Sets updated to None.
Sourcepub fn mopt_updated(&mut self, value: Option<SlackDateTime>) -> &mut Self
pub fn mopt_updated(&mut self, value: Option<SlackDateTime>) -> &mut Self
Sets updated to the given Option.
Sourcepub fn with_updated(self, value: SlackDateTime) -> Self
pub fn with_updated(self, value: SlackDateTime) -> Self
Returns self with updated set to Some(value).
Sourcepub fn without_updated(self) -> Self
pub fn without_updated(self) -> Self
Returns self with updated set to None.
Sourcepub fn opt_updated(self, value: Option<SlackDateTime>) -> Self
pub fn opt_updated(self, value: Option<SlackDateTime>) -> Self
Returns self with updated set to the given Option.
Sourcepub fn with_app_id(self, value: String) -> Self
pub fn with_app_id(self, value: String) -> Self
Returns self with app_id set to value.
Sourcepub fn reset_user_id(&mut self) -> &mut Self
pub fn reset_user_id(&mut self) -> &mut Self
Sets user_id to None.
Sourcepub fn mopt_user_id(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_user_id(&mut self, value: Option<String>) -> &mut Self
Sets user_id to the given Option.
Sourcepub fn with_user_id(self, value: String) -> Self
pub fn with_user_id(self, value: String) -> Self
Returns self with user_id set to Some(value).
Sourcepub fn without_user_id(self) -> Self
pub fn without_user_id(self) -> Self
Returns self with user_id set to None.
Sourcepub fn opt_user_id(self, value: Option<String>) -> Self
pub fn opt_user_id(self, value: Option<String>) -> Self
Returns self with user_id set to the given Option.
Sourcepub fn icons(&mut self, value: SlackIconImages) -> &mut Self
pub fn icons(&mut self, value: SlackIconImages) -> &mut Self
Sets icons to Some(value).
Sourcepub fn reset_icons(&mut self) -> &mut Self
pub fn reset_icons(&mut self) -> &mut Self
Sets icons to None.
Sourcepub fn mopt_icons(&mut self, value: Option<SlackIconImages>) -> &mut Self
pub fn mopt_icons(&mut self, value: Option<SlackIconImages>) -> &mut Self
Sets icons to the given Option.
Sourcepub fn with_icons(self, value: SlackIconImages) -> Self
pub fn with_icons(self, value: SlackIconImages) -> Self
Returns self with icons set to Some(value).
Sourcepub fn without_icons(self) -> Self
pub fn without_icons(self) -> Self
Returns self with icons set to None.
Sourcepub fn opt_icons(self, value: Option<SlackIconImages>) -> Self
pub fn opt_icons(self, value: Option<SlackIconImages>) -> Self
Returns self with icons set to the given Option.