pub struct SlackApiChatUnfurlRequestV2 {
pub source: SlackApiChatUnfurlSource,
pub unfurl_id: SlackUnfurlId,
pub unfurls: HashMap<String, SlackApiChatUnfurlMapItemV2>,
pub user_auth_message: Option<String>,
pub user_auth_required: Option<bool>,
pub user_auth_url: Option<Url>,
}Fields§
§source: SlackApiChatUnfurlSource§unfurl_id: SlackUnfurlId§unfurls: HashMap<String, SlackApiChatUnfurlMapItemV2>§user_auth_message: Option<String>§user_auth_required: Option<bool>§user_auth_url: Option<Url>Implementations§
Source§impl SlackApiChatUnfurlRequestV2
impl SlackApiChatUnfurlRequestV2
Sourcepub fn new(
source: SlackApiChatUnfurlSource,
unfurl_id: SlackUnfurlId,
unfurls: HashMap<String, SlackApiChatUnfurlMapItemV2>,
) -> Self
pub fn new( source: SlackApiChatUnfurlSource, unfurl_id: SlackUnfurlId, unfurls: HashMap<String, SlackApiChatUnfurlMapItemV2>, ) -> Self
Creates a new SlackApiChatUnfurlRequestV2 from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn source(&mut self, value: SlackApiChatUnfurlSource) -> &mut Self
pub fn source(&mut self, value: SlackApiChatUnfurlSource) -> &mut Self
Sets source to value.
Sourcepub fn with_source(self, value: SlackApiChatUnfurlSource) -> Self
pub fn with_source(self, value: SlackApiChatUnfurlSource) -> Self
Returns self with source set to value.
Sourcepub fn unfurl_id(&mut self, value: SlackUnfurlId) -> &mut Self
pub fn unfurl_id(&mut self, value: SlackUnfurlId) -> &mut Self
Sets unfurl_id to value.
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 value.
Sourcepub fn unfurls(
&mut self,
value: HashMap<String, SlackApiChatUnfurlMapItemV2>,
) -> &mut Self
pub fn unfurls( &mut self, value: HashMap<String, SlackApiChatUnfurlMapItemV2>, ) -> &mut Self
Sets unfurls to value.
Sourcepub fn with_unfurls(
self,
value: HashMap<String, SlackApiChatUnfurlMapItemV2>,
) -> Self
pub fn with_unfurls( self, value: HashMap<String, SlackApiChatUnfurlMapItemV2>, ) -> Self
Returns self with unfurls set to value.
Sourcepub fn user_auth_message(&mut self, value: String) -> &mut Self
pub fn user_auth_message(&mut self, value: String) -> &mut Self
Sets user_auth_message to Some(value).
Sourcepub fn reset_user_auth_message(&mut self) -> &mut Self
pub fn reset_user_auth_message(&mut self) -> &mut Self
Sets user_auth_message to None.
Sourcepub fn mopt_user_auth_message(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_user_auth_message(&mut self, value: Option<String>) -> &mut Self
Sets user_auth_message to the given Option.
Sourcepub fn with_user_auth_message(self, value: String) -> Self
pub fn with_user_auth_message(self, value: String) -> Self
Returns self with user_auth_message set to Some(value).
Sourcepub fn without_user_auth_message(self) -> Self
pub fn without_user_auth_message(self) -> Self
Returns self with user_auth_message set to None.
Sourcepub fn opt_user_auth_message(self, value: Option<String>) -> Self
pub fn opt_user_auth_message(self, value: Option<String>) -> Self
Returns self with user_auth_message set to the given Option.
Sourcepub fn user_auth_required(&mut self, value: bool) -> &mut Self
pub fn user_auth_required(&mut self, value: bool) -> &mut Self
Sets user_auth_required to Some(value).
Sourcepub fn reset_user_auth_required(&mut self) -> &mut Self
pub fn reset_user_auth_required(&mut self) -> &mut Self
Sets user_auth_required to None.
Sourcepub fn mopt_user_auth_required(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_user_auth_required(&mut self, value: Option<bool>) -> &mut Self
Sets user_auth_required to the given Option.
Sourcepub fn with_user_auth_required(self, value: bool) -> Self
pub fn with_user_auth_required(self, value: bool) -> Self
Returns self with user_auth_required set to Some(value).
Sourcepub fn without_user_auth_required(self) -> Self
pub fn without_user_auth_required(self) -> Self
Returns self with user_auth_required set to None.
Sourcepub fn opt_user_auth_required(self, value: Option<bool>) -> Self
pub fn opt_user_auth_required(self, value: Option<bool>) -> Self
Returns self with user_auth_required set to the given Option.
Sourcepub fn user_auth_url(&mut self, value: Url) -> &mut Self
pub fn user_auth_url(&mut self, value: Url) -> &mut Self
Sets user_auth_url to Some(value).
Sourcepub fn reset_user_auth_url(&mut self) -> &mut Self
pub fn reset_user_auth_url(&mut self) -> &mut Self
Sets user_auth_url to None.
Sourcepub fn mopt_user_auth_url(&mut self, value: Option<Url>) -> &mut Self
pub fn mopt_user_auth_url(&mut self, value: Option<Url>) -> &mut Self
Sets user_auth_url to the given Option.
Sourcepub fn with_user_auth_url(self, value: Url) -> Self
pub fn with_user_auth_url(self, value: Url) -> Self
Returns self with user_auth_url set to Some(value).
Sourcepub fn without_user_auth_url(self) -> Self
pub fn without_user_auth_url(self) -> Self
Returns self with user_auth_url set to None.
Sourcepub fn opt_user_auth_url(self, value: Option<Url>) -> Self
pub fn opt_user_auth_url(self, value: Option<Url>) -> Self
Returns self with user_auth_url set to the given Option.