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>§public_url_shared: Option<bool>§display_as_bot: Option<bool>§is_starred: Option<bool>§has_rich_preview: Option<bool>

Implementations§

source§

impl SlackFileFlags

source

pub fn new() -> Self

source

pub fn editable(&mut self, value: bool) -> &mut Self

source

pub fn reset_editable(&mut self) -> &mut Self

source

pub fn mopt_editable(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_editable(self, value: bool) -> Self

source

pub fn without_editable(self) -> Self

source

pub fn opt_editable(self, value: Option<bool>) -> Self

source

pub fn is_external(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_external(&mut self) -> &mut Self

source

pub fn mopt_is_external(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_external(self, value: bool) -> Self

source

pub fn without_is_external(self) -> Self

source

pub fn opt_is_external(self, value: Option<bool>) -> Self

source

pub fn is_public(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_public(&mut self) -> &mut Self

source

pub fn mopt_is_public(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_public(self, value: bool) -> Self

source

pub fn without_is_public(self) -> Self

source

pub fn opt_is_public(self, value: Option<bool>) -> Self

source

pub fn public_url_shared(&mut self, value: bool) -> &mut Self

source

pub fn reset_public_url_shared(&mut self) -> &mut Self

source

pub fn mopt_public_url_shared(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_public_url_shared(self, value: bool) -> Self

source

pub fn without_public_url_shared(self) -> Self

source

pub fn opt_public_url_shared(self, value: Option<bool>) -> Self

source

pub fn display_as_bot(&mut self, value: bool) -> &mut Self

source

pub fn reset_display_as_bot(&mut self) -> &mut Self

source

pub fn mopt_display_as_bot(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_display_as_bot(self, value: bool) -> Self

source

pub fn without_display_as_bot(self) -> Self

source

pub fn opt_display_as_bot(self, value: Option<bool>) -> Self

source

pub fn is_starred(&mut self, value: bool) -> &mut Self

source

pub fn reset_is_starred(&mut self) -> &mut Self

source

pub fn mopt_is_starred(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_is_starred(self, value: bool) -> Self

source

pub fn without_is_starred(self) -> Self

source

pub fn opt_is_starred(self, value: Option<bool>) -> Self

source

pub fn has_rich_preview(&mut self, value: bool) -> &mut Self

source

pub fn reset_has_rich_preview(&mut self) -> &mut Self

source

pub fn mopt_has_rich_preview(&mut self, value: Option<bool>) -> &mut Self

source

pub fn with_has_rich_preview(self, value: bool) -> Self

source

pub fn without_has_rich_preview(self) -> Self

source

pub fn opt_has_rich_preview(self, value: Option<bool>) -> Self

Trait Implementations§

source§

impl Clone for SlackFileFlags

source§

fn clone(&self) -> SlackFileFlags

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SlackFileFlags

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SlackFileFlags

source§

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

source§

fn from(value: SlackFileFlagsInit) -> Self

Converts to this type from the input type.
source§

impl PartialEq for SlackFileFlags

source§

fn eq(&self, other: &SlackFileFlags) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for SlackFileFlags

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for SlackFileFlags

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

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
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,