pub struct SlackIconImages {
pub resolutions: Vec<(u32, String)>,
}Fields§
§resolutions: Vec<(u32, String)>Implementations§
Source§impl SlackIconImages
impl SlackIconImages
Sourcepub fn new(resolutions: Vec<(u32, String)>) -> Self
pub fn new(resolutions: Vec<(u32, String)>) -> Self
Creates a new SlackIconImages from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn resolutions(&mut self, value: Vec<(u32, String)>) -> &mut Self
pub fn resolutions(&mut self, value: Vec<(u32, String)>) -> &mut Self
Sets resolutions to value.
Sourcepub fn with_resolutions(self, value: Vec<(u32, String)>) -> Self
pub fn with_resolutions(self, value: Vec<(u32, String)>) -> Self
Returns self with resolutions set to value.
Trait Implementations§
Source§impl Clone for SlackIconImages
impl Clone for SlackIconImages
Source§impl Debug for SlackIconImages
impl Debug for SlackIconImages
Source§impl<'de> Deserialize<'de> for SlackIconImages
impl<'de> Deserialize<'de> for SlackIconImages
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
Source§impl From<SlackIconImagesInit> for SlackIconImages
impl From<SlackIconImagesInit> for SlackIconImages
Source§fn from(value: SlackIconImagesInit) -> Self
fn from(value: SlackIconImagesInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackIconImages
impl PartialEq for SlackIconImages
Source§impl Serialize for SlackIconImages
impl Serialize for SlackIconImages
impl StructuralPartialEq for SlackIconImages
Auto Trait Implementations§
impl Freeze for SlackIconImages
impl RefUnwindSafe for SlackIconImages
impl Send for SlackIconImages
impl Sync for SlackIconImages
impl Unpin for SlackIconImages
impl UnsafeUnpin for SlackIconImages
impl UnwindSafe for SlackIconImages
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