pub struct SlackFile { /* private fields */ }Expand description
A reference to an image file hosted in Slack.
Slack reference. Provide exactly one of an ID or a URL. An ID must match ^F[A-Z0-9]{8,}$.
Implementations§
Source§impl SlackFile
impl SlackFile
Sourcepub fn builder() -> SlackFileBuilder
pub fn builder() -> SlackFileBuilder
Starts a builder with the documented model defaults.
Sourcepub fn into_builder(self) -> SlackFileBuilder
pub fn into_builder(self) -> SlackFileBuilder
Moves every field into an editable builder, preserving explicit omissions.
Sourcepub fn id(&self) -> Option<&str>
pub fn id(&self) -> Option<&str>
Borrows or copies id. Sets the ID of a file previously uploaded to Slack. Cannot be combined with a URL.
Sourcepub fn url(&self) -> Option<&str>
pub fn url(&self) -> Option<&str>
Borrows or copies url. Sets the URL of a file hosted in Slack. Cannot be combined with an ID.
Sourcepub fn extensions(&self) -> &Map<String, Value>
pub fn extensions(&self) -> &Map<String, Value>
Borrows checked, unmodeled JSON extension fields.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SlackFile
impl<'de> Deserialize<'de> for SlackFile
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SlackFile
Auto Trait Implementations§
impl Forget for SlackFile
impl Freeze for SlackFile
impl Move 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