Struct slack_morphism::files::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
sourceimpl 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
sourceimpl Clone for SlackFileFlags
impl Clone for SlackFileFlags
sourcefn clone(&self) -> SlackFileFlags
fn clone(&self) -> SlackFileFlags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for SlackFileFlags
impl Debug for SlackFileFlags
sourceimpl<'de> Deserialize<'de> for SlackFileFlags
impl<'de> Deserialize<'de> for SlackFileFlags
sourcefn 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
sourceimpl From<SlackFileFlagsInit> for SlackFileFlags
impl From<SlackFileFlagsInit> for SlackFileFlags
sourcefn from(value: SlackFileFlagsInit) -> Self
fn from(value: SlackFileFlagsInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackFileFlags> for SlackFileFlags
impl PartialEq<SlackFileFlags> for SlackFileFlags
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &SlackFileFlags) -> bool
fn ne(&self, other: &SlackFileFlags) -> bool
This method tests for !=.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more