pub struct SlackFile {
pub id: String,
pub name: String,
pub url_private: String,
pub shares: SlackFileShares,
}Expand description
A file as files.info reports it. url_private is a bearer fetch, not
a URL, and name is whatever the uploader chose to call it - untrusted
input as far as this code is concerned.
Fields§
§id: String§name: String§url_private: StringWhere the file was shared. The upload call answers no message ts,
so this is the only place a posted file’s message is named.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackFile
impl<'de> Deserialize<'de> for SlackFile
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
impl Eq for SlackFile
impl StructuralPartialEq for SlackFile
Auto Trait Implementations§
impl Freeze for SlackFile
impl RefUnwindSafe for SlackFile
impl Send for SlackFile
impl Sync for SlackFile
impl Unpin for SlackFile
impl UnsafeUnpin for SlackFile
impl UnwindSafe for SlackFile
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.