#[non_exhaustive]pub enum ContainerWidth {
Narrow,
Standard,
Wide,
Full,
}Expand description
Widths supported by Slack container blocks.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Narrow
A compact container.
Standard
Slack’s standard container width.
Wide
A wide container.
Full
The full available width.
Implementations§
Trait Implementations§
Source§impl Clone for ContainerWidth
impl Clone for ContainerWidth
impl Copy for ContainerWidth
Source§impl Debug for ContainerWidth
impl Debug for ContainerWidth
Source§impl<'de> Deserialize<'de> for ContainerWidth
impl<'de> Deserialize<'de> for ContainerWidth
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
Source§impl Display for ContainerWidth
impl Display for ContainerWidth
impl Eq for ContainerWidth
Source§impl FromStr for ContainerWidth
impl FromStr for ContainerWidth
Source§impl Hash for ContainerWidth
impl Hash for ContainerWidth
Source§impl PartialEq for ContainerWidth
impl PartialEq for ContainerWidth
Source§impl Serialize for ContainerWidth
impl Serialize for ContainerWidth
impl StructuralPartialEq for ContainerWidth
Source§impl TryFrom<Value> for ContainerWidth
impl TryFrom<Value> for ContainerWidth
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for ContainerWidth
impl Freeze for ContainerWidth
impl Move for ContainerWidth
impl RefUnwindSafe for ContainerWidth
impl Send for ContainerWidth
impl Sync for ContainerWidth
impl Unpin for ContainerWidth
impl UnsafeUnpin for ContainerWidth
impl UnwindSafe for ContainerWidth
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