Struct slack_morphism::prelude::SlackFileFlags
source · 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
pub fn new() -> Self
pub fn editable(&mut self, value: bool) -> &mut Self
pub fn reset_editable(&mut self) -> &mut Self
pub fn mopt_editable(&mut self, value: Option<bool>) -> &mut Self
pub fn with_editable(self, value: bool) -> Self
pub fn without_editable(self) -> Self
pub fn opt_editable(self, value: Option<bool>) -> Self
pub fn is_external(&mut self, value: bool) -> &mut Self
pub fn reset_is_external(&mut self) -> &mut Self
pub fn mopt_is_external(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_external(self, value: bool) -> Self
pub fn without_is_external(self) -> Self
pub fn opt_is_external(self, value: Option<bool>) -> Self
pub fn is_public(&mut self, value: bool) -> &mut Self
pub fn reset_is_public(&mut self) -> &mut Self
pub fn mopt_is_public(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_public(self, value: bool) -> Self
pub fn without_is_public(self) -> Self
pub fn opt_is_public(self, value: Option<bool>) -> Self
pub fn display_as_bot(&mut self, value: bool) -> &mut Self
pub fn reset_display_as_bot(&mut self) -> &mut Self
pub fn mopt_display_as_bot(&mut self, value: Option<bool>) -> &mut Self
pub fn with_display_as_bot(self, value: bool) -> Self
pub fn without_display_as_bot(self) -> Self
pub fn opt_display_as_bot(self, value: Option<bool>) -> Self
pub fn is_starred(&mut self, value: bool) -> &mut Self
pub fn reset_is_starred(&mut self) -> &mut Self
pub fn mopt_is_starred(&mut self, value: Option<bool>) -> &mut Self
pub fn with_is_starred(self, value: bool) -> Self
pub fn without_is_starred(self) -> Self
pub fn opt_is_starred(self, value: Option<bool>) -> Self
pub fn has_rich_preview(&mut self, value: bool) -> &mut Self
pub fn reset_has_rich_preview(&mut self) -> &mut Self
pub fn mopt_has_rich_preview(&mut self, value: Option<bool>) -> &mut Self
pub fn with_has_rich_preview(self, value: bool) -> Self
pub fn without_has_rich_preview(self) -> Self
pub fn opt_has_rich_preview(self, value: Option<bool>) -> Self
Trait Implementations§
source§impl Clone for SlackFileFlags
impl Clone for SlackFileFlags
source§fn clone(&self) -> SlackFileFlags
fn clone(&self) -> SlackFileFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SlackFileFlags
impl Debug for SlackFileFlags
source§impl<'de> Deserialize<'de> for SlackFileFlags
impl<'de> Deserialize<'de> for SlackFileFlags
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SlackFileFlagsInit> for SlackFileFlags
impl From<SlackFileFlagsInit> for SlackFileFlags
source§fn from(value: SlackFileFlagsInit) -> Self
fn from(value: SlackFileFlagsInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackFileFlags
impl PartialEq for SlackFileFlags
source§fn eq(&self, other: &SlackFileFlags) -> bool
fn eq(&self, other: &SlackFileFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackFileFlags
impl Serialize for SlackFileFlags
impl StructuralPartialEq for SlackFileFlags
Auto Trait Implementations§
impl RefUnwindSafe for SlackFileFlags
impl Send for SlackFileFlags
impl Sync for SlackFileFlags
impl Unpin for SlackFileFlags
impl UnwindSafe for SlackFileFlags
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more