pub struct SlackFileFlags {
pub editable: Option<bool>,
pub is_external: Option<bool>,
pub is_public: Option<bool>,
pub public_url_shared: Option<bool>,
pub display_as_bot: Option<bool>,
pub is_starred: Option<bool>,
pub has_rich_preview: Option<bool>,
}Fields§
§editable: Option<bool>§is_external: Option<bool>§is_public: Option<bool>§display_as_bot: Option<bool>§is_starred: Option<bool>§has_rich_preview: Option<bool>Implementations§
Source§impl SlackFileFlags
impl SlackFileFlags
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackFileFlags from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn reset_editable(&mut self) -> &mut Self
pub fn reset_editable(&mut self) -> &mut Self
Sets editable to None.
Sourcepub fn mopt_editable(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_editable(&mut self, value: Option<bool>) -> &mut Self
Sets editable to the given Option.
Sourcepub fn with_editable(self, value: bool) -> Self
pub fn with_editable(self, value: bool) -> Self
Returns self with editable set to Some(value).
Sourcepub fn without_editable(self) -> Self
pub fn without_editable(self) -> Self
Returns self with editable set to None.
Sourcepub fn opt_editable(self, value: Option<bool>) -> Self
pub fn opt_editable(self, value: Option<bool>) -> Self
Returns self with editable set to the given Option.
Sourcepub fn is_external(&mut self, value: bool) -> &mut Self
pub fn is_external(&mut self, value: bool) -> &mut Self
Sets is_external to Some(value).
Sourcepub fn reset_is_external(&mut self) -> &mut Self
pub fn reset_is_external(&mut self) -> &mut Self
Sets is_external to None.
Sourcepub fn mopt_is_external(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_external(&mut self, value: Option<bool>) -> &mut Self
Sets is_external to the given Option.
Sourcepub fn with_is_external(self, value: bool) -> Self
pub fn with_is_external(self, value: bool) -> Self
Returns self with is_external set to Some(value).
Sourcepub fn without_is_external(self) -> Self
pub fn without_is_external(self) -> Self
Returns self with is_external set to None.
Sourcepub fn opt_is_external(self, value: Option<bool>) -> Self
pub fn opt_is_external(self, value: Option<bool>) -> Self
Returns self with is_external set to the given Option.
Sourcepub fn reset_is_public(&mut self) -> &mut Self
pub fn reset_is_public(&mut self) -> &mut Self
Sets is_public to None.
Sourcepub fn mopt_is_public(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_public(&mut self, value: Option<bool>) -> &mut Self
Sets is_public to the given Option.
Sourcepub fn with_is_public(self, value: bool) -> Self
pub fn with_is_public(self, value: bool) -> Self
Returns self with is_public set to Some(value).
Sourcepub fn without_is_public(self) -> Self
pub fn without_is_public(self) -> Self
Returns self with is_public set to None.
Sourcepub fn opt_is_public(self, value: Option<bool>) -> Self
pub fn opt_is_public(self, value: Option<bool>) -> Self
Returns self with is_public set to the given Option.
Sets public_url_shared to Some(value).
Sets public_url_shared to None.
Sets public_url_shared to the given Option.
Returns self with public_url_shared set to Some(value).
Returns self with public_url_shared set to None.
Returns self with public_url_shared set to the given Option.
Sourcepub fn display_as_bot(&mut self, value: bool) -> &mut Self
pub fn display_as_bot(&mut self, value: bool) -> &mut Self
Sets display_as_bot to Some(value).
Sourcepub fn reset_display_as_bot(&mut self) -> &mut Self
pub fn reset_display_as_bot(&mut self) -> &mut Self
Sets display_as_bot to None.
Sourcepub fn mopt_display_as_bot(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_display_as_bot(&mut self, value: Option<bool>) -> &mut Self
Sets display_as_bot to the given Option.
Sourcepub fn with_display_as_bot(self, value: bool) -> Self
pub fn with_display_as_bot(self, value: bool) -> Self
Returns self with display_as_bot set to Some(value).
Sourcepub fn without_display_as_bot(self) -> Self
pub fn without_display_as_bot(self) -> Self
Returns self with display_as_bot set to None.
Sourcepub fn opt_display_as_bot(self, value: Option<bool>) -> Self
pub fn opt_display_as_bot(self, value: Option<bool>) -> Self
Returns self with display_as_bot set to the given Option.
Sourcepub fn is_starred(&mut self, value: bool) -> &mut Self
pub fn is_starred(&mut self, value: bool) -> &mut Self
Sets is_starred to Some(value).
Sourcepub fn reset_is_starred(&mut self) -> &mut Self
pub fn reset_is_starred(&mut self) -> &mut Self
Sets is_starred to None.
Sourcepub fn mopt_is_starred(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_starred(&mut self, value: Option<bool>) -> &mut Self
Sets is_starred to the given Option.
Sourcepub fn with_is_starred(self, value: bool) -> Self
pub fn with_is_starred(self, value: bool) -> Self
Returns self with is_starred set to Some(value).
Sourcepub fn without_is_starred(self) -> Self
pub fn without_is_starred(self) -> Self
Returns self with is_starred set to None.
Sourcepub fn opt_is_starred(self, value: Option<bool>) -> Self
pub fn opt_is_starred(self, value: Option<bool>) -> Self
Returns self with is_starred set to the given Option.
Sourcepub fn has_rich_preview(&mut self, value: bool) -> &mut Self
pub fn has_rich_preview(&mut self, value: bool) -> &mut Self
Sets has_rich_preview to Some(value).
Sourcepub fn reset_has_rich_preview(&mut self) -> &mut Self
pub fn reset_has_rich_preview(&mut self) -> &mut Self
Sets has_rich_preview to None.
Sourcepub fn mopt_has_rich_preview(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_has_rich_preview(&mut self, value: Option<bool>) -> &mut Self
Sets has_rich_preview to the given Option.
Sourcepub fn with_has_rich_preview(self, value: bool) -> Self
pub fn with_has_rich_preview(self, value: bool) -> Self
Returns self with has_rich_preview set to Some(value).
Sourcepub fn without_has_rich_preview(self) -> Self
pub fn without_has_rich_preview(self) -> Self
Returns self with has_rich_preview set to None.
Sourcepub fn opt_has_rich_preview(self, value: Option<bool>) -> Self
pub fn opt_has_rich_preview(self, value: Option<bool>) -> Self
Returns self with has_rich_preview set to the given Option.