slack_morphism::files

Struct SlackFile

Source
pub struct SlackFile {
Show 17 fields pub id: SlackFileId, pub created: Option<SlackDateTime>, pub timestamp: Option<SlackDateTime>, pub name: Option<String>, pub title: Option<String>, pub mimetype: Option<SlackMimeType>, pub filetype: Option<SlackFileType>, pub pretty_type: Option<SlackFilePrettyType>, pub external_type: Option<SlackFileExternalType>, pub user: Option<SlackUserId>, pub username: Option<String>, pub url_private: Option<Url>, pub url_private_download: Option<Url>, pub permalink: Option<Url>, pub permalink_public: Option<Url>, pub reactions: Option<Vec<SlackReaction>>, pub flags: SlackFileFlags,
}

Fields§

§id: SlackFileId§created: Option<SlackDateTime>§timestamp: Option<SlackDateTime>§name: Option<String>§title: Option<String>§mimetype: Option<SlackMimeType>§filetype: Option<SlackFileType>§pretty_type: Option<SlackFilePrettyType>§external_type: Option<SlackFileExternalType>§user: Option<SlackUserId>§username: Option<String>§url_private: Option<Url>§url_private_download: Option<Url>§permalink: Option<Url>§permalink_public: Option<Url>§reactions: Option<Vec<SlackReaction>>§flags: SlackFileFlags

Implementations§

Source§

impl SlackFile

Source

pub fn new(id: SlackFileId, flags: SlackFileFlags) -> Self

Source

pub fn id(&mut self, value: SlackFileId) -> &mut Self

Source

pub fn with_id(self, value: SlackFileId) -> Self

Source

pub fn created(&mut self, value: SlackDateTime) -> &mut Self

Source

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

Source

pub fn mopt_created(&mut self, value: Option<SlackDateTime>) -> &mut Self

Source

pub fn with_created(self, value: SlackDateTime) -> Self

Source

pub fn without_created(self) -> Self

Source

pub fn opt_created(self, value: Option<SlackDateTime>) -> Self

Source

pub fn timestamp(&mut self, value: SlackDateTime) -> &mut Self

Source

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

Source

pub fn mopt_timestamp(&mut self, value: Option<SlackDateTime>) -> &mut Self

Source

pub fn with_timestamp(self, value: SlackDateTime) -> Self

Source

pub fn without_timestamp(self) -> Self

Source

pub fn opt_timestamp(self, value: Option<SlackDateTime>) -> Self

Source

pub fn name(&mut self, value: String) -> &mut Self

Source

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

Source

pub fn mopt_name(&mut self, value: Option<String>) -> &mut Self

Source

pub fn with_name(self, value: String) -> Self

Source

pub fn without_name(self) -> Self

Source

pub fn opt_name(self, value: Option<String>) -> Self

Source

pub fn title(&mut self, value: String) -> &mut Self

Source

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

Source

pub fn mopt_title(&mut self, value: Option<String>) -> &mut Self

Source

pub fn with_title(self, value: String) -> Self

Source

pub fn without_title(self) -> Self

Source

pub fn opt_title(self, value: Option<String>) -> Self

Source

pub fn mimetype(&mut self, value: SlackMimeType) -> &mut Self

Source

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

Source

pub fn mopt_mimetype(&mut self, value: Option<SlackMimeType>) -> &mut Self

Source

pub fn with_mimetype(self, value: SlackMimeType) -> Self

Source

pub fn without_mimetype(self) -> Self

Source

pub fn opt_mimetype(self, value: Option<SlackMimeType>) -> Self

Source

pub fn filetype(&mut self, value: SlackFileType) -> &mut Self

Source

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

Source

pub fn mopt_filetype(&mut self, value: Option<SlackFileType>) -> &mut Self

Source

pub fn with_filetype(self, value: SlackFileType) -> Self

Source

pub fn without_filetype(self) -> Self

Source

pub fn opt_filetype(self, value: Option<SlackFileType>) -> Self

Source

pub fn pretty_type(&mut self, value: SlackFilePrettyType) -> &mut Self

Source

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

Source

pub fn mopt_pretty_type( &mut self, value: Option<SlackFilePrettyType>, ) -> &mut Self

Source

pub fn with_pretty_type(self, value: SlackFilePrettyType) -> Self

Source

pub fn without_pretty_type(self) -> Self

Source

pub fn opt_pretty_type(self, value: Option<SlackFilePrettyType>) -> Self

Source

pub fn external_type(&mut self, value: SlackFileExternalType) -> &mut Self

Source

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

Source

pub fn mopt_external_type( &mut self, value: Option<SlackFileExternalType>, ) -> &mut Self

Source

pub fn with_external_type(self, value: SlackFileExternalType) -> Self

Source

pub fn without_external_type(self) -> Self

Source

pub fn opt_external_type(self, value: Option<SlackFileExternalType>) -> Self

Source

pub fn user(&mut self, value: SlackUserId) -> &mut Self

Source

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

Source

pub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut Self

Source

pub fn with_user(self, value: SlackUserId) -> Self

Source

pub fn without_user(self) -> Self

Source

pub fn opt_user(self, value: Option<SlackUserId>) -> Self

Source

pub fn username(&mut self, value: String) -> &mut Self

Source

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

Source

pub fn mopt_username(&mut self, value: Option<String>) -> &mut Self

Source

pub fn with_username(self, value: String) -> Self

Source

pub fn without_username(self) -> Self

Source

pub fn opt_username(self, value: Option<String>) -> Self

Source

pub fn url_private(&mut self, value: Url) -> &mut Self

Source

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

Source

pub fn mopt_url_private(&mut self, value: Option<Url>) -> &mut Self

Source

pub fn with_url_private(self, value: Url) -> Self

Source

pub fn without_url_private(self) -> Self

Source

pub fn opt_url_private(self, value: Option<Url>) -> Self

Source

pub fn url_private_download(&mut self, value: Url) -> &mut Self

Source

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

Source

pub fn mopt_url_private_download(&mut self, value: Option<Url>) -> &mut Self

Source

pub fn with_url_private_download(self, value: Url) -> Self

Source

pub fn without_url_private_download(self) -> Self

Source

pub fn opt_url_private_download(self, value: Option<Url>) -> Self

Source

pub fn reactions(&mut self, value: Vec<SlackReaction>) -> &mut Self

Source

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

Source

pub fn mopt_reactions(&mut self, value: Option<Vec<SlackReaction>>) -> &mut Self

Source

pub fn with_reactions(self, value: Vec<SlackReaction>) -> Self

Source

pub fn without_reactions(self) -> Self

Source

pub fn opt_reactions(self, value: Option<Vec<SlackReaction>>) -> Self

Source

pub fn flags(&mut self, value: SlackFileFlags) -> &mut Self

Source

pub fn with_flags(self, value: SlackFileFlags) -> Self

Trait Implementations§

Source§

impl Clone for SlackFile

Source§

fn clone(&self) -> SlackFile

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 SlackFile

Source§

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

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

impl<'de> Deserialize<'de> for SlackFile

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<SlackFileInit> for SlackFile

Source§

fn from(value: SlackFileInit) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for SlackFile

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for SlackFile

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 SlackFile

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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,

Source§

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>,

Source§

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>,

Source§

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>,