pub struct SlackLinkSharedEvent {
pub channel: SlackChannelId,
pub event_ts: SlackTs,
pub is_bot_user_member: bool,
pub links: Vec<SlackLinkObject>,
pub message_ts: SlackTs,
pub source: Option<String>,
pub unfurl_id: Option<SlackUnfurlId>,
pub user: SlackUserId,
}Fields§
§channel: SlackChannelId§event_ts: SlackTs§is_bot_user_member: bool§links: Vec<SlackLinkObject>§message_ts: SlackTs§source: Option<String>§unfurl_id: Option<SlackUnfurlId>§user: SlackUserIdImplementations§
Sourcepub fn new(
channel: SlackChannelId,
event_ts: SlackTs,
is_bot_user_member: bool,
links: Vec<SlackLinkObject>,
message_ts: SlackTs,
user: SlackUserId,
) -> Self
pub fn new( channel: SlackChannelId, event_ts: SlackTs, is_bot_user_member: bool, links: Vec<SlackLinkObject>, message_ts: SlackTs, user: SlackUserId, ) -> Self
Creates a new SlackLinkSharedEvent from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn channel(&mut self, value: SlackChannelId) -> &mut Self
pub fn channel(&mut self, value: SlackChannelId) -> &mut Self
Sets channel to value.
Sourcepub fn with_channel(self, value: SlackChannelId) -> Self
pub fn with_channel(self, value: SlackChannelId) -> Self
Returns self with channel set to value.
Sourcepub fn with_event_ts(self, value: SlackTs) -> Self
pub fn with_event_ts(self, value: SlackTs) -> Self
Returns self with event_ts set to value.
Sourcepub fn is_bot_user_member(&mut self, value: bool) -> &mut Self
pub fn is_bot_user_member(&mut self, value: bool) -> &mut Self
Sets is_bot_user_member to value.
Sourcepub fn with_is_bot_user_member(self, value: bool) -> Self
pub fn with_is_bot_user_member(self, value: bool) -> Self
Returns self with is_bot_user_member set to value.
Sourcepub fn links(&mut self, value: Vec<SlackLinkObject>) -> &mut Self
pub fn links(&mut self, value: Vec<SlackLinkObject>) -> &mut Self
Sets links to value.
Sourcepub fn with_links(self, value: Vec<SlackLinkObject>) -> Self
pub fn with_links(self, value: Vec<SlackLinkObject>) -> Self
Returns self with links set to value.
Sourcepub fn message_ts(&mut self, value: SlackTs) -> &mut Self
pub fn message_ts(&mut self, value: SlackTs) -> &mut Self
Sets message_ts to value.
Sourcepub fn with_message_ts(self, value: SlackTs) -> Self
pub fn with_message_ts(self, value: SlackTs) -> Self
Returns self with message_ts set to value.
Sourcepub fn reset_source(&mut self) -> &mut Self
pub fn reset_source(&mut self) -> &mut Self
Sets source to None.
Sourcepub fn mopt_source(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_source(&mut self, value: Option<String>) -> &mut Self
Sets source to the given Option.
Sourcepub fn with_source(self, value: String) -> Self
pub fn with_source(self, value: String) -> Self
Returns self with source set to Some(value).
Sourcepub fn without_source(self) -> Self
pub fn without_source(self) -> Self
Returns self with source set to None.
Sourcepub fn opt_source(self, value: Option<String>) -> Self
pub fn opt_source(self, value: Option<String>) -> Self
Returns self with source set to the given Option.
Sourcepub fn unfurl_id(&mut self, value: SlackUnfurlId) -> &mut Self
pub fn unfurl_id(&mut self, value: SlackUnfurlId) -> &mut Self
Sets unfurl_id to Some(value).
Sourcepub fn reset_unfurl_id(&mut self) -> &mut Self
pub fn reset_unfurl_id(&mut self) -> &mut Self
Sets unfurl_id to None.
Sourcepub fn mopt_unfurl_id(&mut self, value: Option<SlackUnfurlId>) -> &mut Self
pub fn mopt_unfurl_id(&mut self, value: Option<SlackUnfurlId>) -> &mut Self
Sets unfurl_id to the given Option.
Sourcepub fn with_unfurl_id(self, value: SlackUnfurlId) -> Self
pub fn with_unfurl_id(self, value: SlackUnfurlId) -> Self
Returns self with unfurl_id set to Some(value).
Sourcepub fn without_unfurl_id(self) -> Self
pub fn without_unfurl_id(self) -> Self
Returns self with unfurl_id set to None.
Sourcepub fn opt_unfurl_id(self, value: Option<SlackUnfurlId>) -> Self
pub fn opt_unfurl_id(self, value: Option<SlackUnfurlId>) -> Self
Returns self with unfurl_id set to the given Option.
Sourcepub fn user(&mut self, value: SlackUserId) -> &mut Self
pub fn user(&mut self, value: SlackUserId) -> &mut Self
Sets user to value.
Sourcepub fn with_user(self, value: SlackUserId) -> Self
pub fn with_user(self, value: SlackUserId) -> Self
Returns self with user set to value.