pub struct SlackFile {Show 16 fields
pub id: SlackFileId,
pub created: SlackDateTime,
pub timestamp: SlackDateTime,
pub name: 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 flags: SlackFileFlags,
}Fields
id: SlackFileIdcreated: SlackDateTimetimestamp: SlackDateTimename: Stringtitle: 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>flags: SlackFileFlagsImplementations
sourceimpl SlackFile
impl SlackFile
pub fn new(
id: SlackFileId,
created: SlackDateTime,
timestamp: SlackDateTime,
name: String,
flags: SlackFileFlags
) -> SlackFile
pub fn id(&mut self, value: SlackFileId) -> &mut SlackFile
pub fn with_id(self, value: SlackFileId) -> SlackFile
pub fn created(&mut self, value: SlackDateTime) -> &mut SlackFile
pub fn with_created(self, value: SlackDateTime) -> SlackFile
pub fn timestamp(&mut self, value: SlackDateTime) -> &mut SlackFile
pub fn with_timestamp(self, value: SlackDateTime) -> SlackFile
pub fn name(&mut self, value: String) -> &mut SlackFile
pub fn with_name(self, value: String) -> SlackFile
pub fn title(&mut self, value: String) -> &mut SlackFile
pub fn reset_title(&mut self) -> &mut SlackFile
pub fn mopt_title(&mut self, value: Option<String>) -> &mut SlackFile
pub fn with_title(self, value: String) -> SlackFile
pub fn without_title(self) -> SlackFile
pub fn opt_title(self, value: Option<String>) -> SlackFile
pub fn mimetype(&mut self, value: SlackMimeType) -> &mut SlackFile
pub fn reset_mimetype(&mut self) -> &mut SlackFile
pub fn mopt_mimetype(&mut self, value: Option<SlackMimeType>) -> &mut SlackFile
pub fn with_mimetype(self, value: SlackMimeType) -> SlackFile
pub fn without_mimetype(self) -> SlackFile
pub fn opt_mimetype(self, value: Option<SlackMimeType>) -> SlackFile
pub fn filetype(&mut self, value: SlackFileType) -> &mut SlackFile
pub fn reset_filetype(&mut self) -> &mut SlackFile
pub fn mopt_filetype(&mut self, value: Option<SlackFileType>) -> &mut SlackFile
pub fn with_filetype(self, value: SlackFileType) -> SlackFile
pub fn without_filetype(self) -> SlackFile
pub fn opt_filetype(self, value: Option<SlackFileType>) -> SlackFile
pub fn pretty_type(&mut self, value: SlackFilePrettyType) -> &mut SlackFile
pub fn reset_pretty_type(&mut self) -> &mut SlackFile
pub fn mopt_pretty_type(
&mut self,
value: Option<SlackFilePrettyType>
) -> &mut SlackFile
pub fn with_pretty_type(self, value: SlackFilePrettyType) -> SlackFile
pub fn without_pretty_type(self) -> SlackFile
pub fn opt_pretty_type(self, value: Option<SlackFilePrettyType>) -> SlackFile
pub fn external_type(&mut self, value: SlackFileExternalType) -> &mut SlackFile
pub fn reset_external_type(&mut self) -> &mut SlackFile
pub fn mopt_external_type(
&mut self,
value: Option<SlackFileExternalType>
) -> &mut SlackFile
pub fn with_external_type(self, value: SlackFileExternalType) -> SlackFile
pub fn without_external_type(self) -> SlackFile
pub fn opt_external_type(
self,
value: Option<SlackFileExternalType>
) -> SlackFile
pub fn user(&mut self, value: SlackUserId) -> &mut SlackFile
pub fn reset_user(&mut self) -> &mut SlackFile
pub fn mopt_user(&mut self, value: Option<SlackUserId>) -> &mut SlackFile
pub fn with_user(self, value: SlackUserId) -> SlackFile
pub fn without_user(self) -> SlackFile
pub fn opt_user(self, value: Option<SlackUserId>) -> SlackFile
pub fn username(&mut self, value: String) -> &mut SlackFile
pub fn reset_username(&mut self) -> &mut SlackFile
pub fn mopt_username(&mut self, value: Option<String>) -> &mut SlackFile
pub fn with_username(self, value: String) -> SlackFile
pub fn without_username(self) -> SlackFile
pub fn opt_username(self, value: Option<String>) -> SlackFile
pub fn url_private(&mut self, value: Url) -> &mut SlackFile
pub fn reset_url_private(&mut self) -> &mut SlackFile
pub fn mopt_url_private(&mut self, value: Option<Url>) -> &mut SlackFile
pub fn with_url_private(self, value: Url) -> SlackFile
pub fn without_url_private(self) -> SlackFile
pub fn opt_url_private(self, value: Option<Url>) -> SlackFile
pub fn url_private_download(&mut self, value: Url) -> &mut SlackFile
pub fn reset_url_private_download(&mut self) -> &mut SlackFile
pub fn mopt_url_private_download(
&mut self,
value: Option<Url>
) -> &mut SlackFile
pub fn with_url_private_download(self, value: Url) -> SlackFile
pub fn without_url_private_download(self) -> SlackFile
pub fn opt_url_private_download(self, value: Option<Url>) -> SlackFile
pub fn permalink(&mut self, value: Url) -> &mut SlackFile
pub fn reset_permalink(&mut self) -> &mut SlackFile
pub fn mopt_permalink(&mut self, value: Option<Url>) -> &mut SlackFile
pub fn with_permalink(self, value: Url) -> SlackFile
pub fn without_permalink(self) -> SlackFile
pub fn opt_permalink(self, value: Option<Url>) -> SlackFile
pub fn permalink_public(&mut self, value: Url) -> &mut SlackFile
pub fn reset_permalink_public(&mut self) -> &mut SlackFile
pub fn mopt_permalink_public(&mut self, value: Option<Url>) -> &mut SlackFile
pub fn with_permalink_public(self, value: Url) -> SlackFile
pub fn without_permalink_public(self) -> SlackFile
pub fn opt_permalink_public(self, value: Option<Url>) -> SlackFile
pub fn flags(&mut self, value: SlackFileFlags) -> &mut SlackFile
pub fn with_flags(self, value: SlackFileFlags) -> SlackFile
Trait Implementations
sourceimpl<'de> Deserialize<'de> for SlackFile
impl<'de> Deserialize<'de> for SlackFile
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<SlackFile, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackFile, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<SlackFileInit> for SlackFile
impl From<SlackFileInit> for SlackFile
sourcefn from(value: SlackFileInit) -> SlackFile
fn from(value: SlackFileInit) -> SlackFile
Converts to this type from the input type.
sourceimpl Serialize for SlackFile
impl Serialize for SlackFile
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SlackFile
Auto Trait Implementations
impl RefUnwindSafe for SlackFile
impl Send for SlackFile
impl Sync for SlackFile
impl Unpin for SlackFile
impl UnwindSafe for SlackFile
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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
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