pub struct SlackTableColumnSetting {
pub align: Option<SlackTableColumnAlign>,
pub is_wrapped: Option<bool>,
}Fields§
§align: Option<SlackTableColumnAlign>§is_wrapped: Option<bool>Implementations§
Source§impl SlackTableColumnSetting
impl SlackTableColumnSetting
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackTableColumnSetting from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn align(&mut self, value: SlackTableColumnAlign) -> &mut Self
pub fn align(&mut self, value: SlackTableColumnAlign) -> &mut Self
Sets align to Some(value).
Sourcepub fn reset_align(&mut self) -> &mut Self
pub fn reset_align(&mut self) -> &mut Self
Sets align to None.
Sourcepub fn mopt_align(&mut self, value: Option<SlackTableColumnAlign>) -> &mut Self
pub fn mopt_align(&mut self, value: Option<SlackTableColumnAlign>) -> &mut Self
Sets align to the given Option.
Sourcepub fn with_align(self, value: SlackTableColumnAlign) -> Self
pub fn with_align(self, value: SlackTableColumnAlign) -> Self
Returns self with align set to Some(value).
Sourcepub fn without_align(self) -> Self
pub fn without_align(self) -> Self
Returns self with align set to None.
Sourcepub fn opt_align(self, value: Option<SlackTableColumnAlign>) -> Self
pub fn opt_align(self, value: Option<SlackTableColumnAlign>) -> Self
Returns self with align set to the given Option.
Sourcepub fn is_wrapped(&mut self, value: bool) -> &mut Self
pub fn is_wrapped(&mut self, value: bool) -> &mut Self
Sets is_wrapped to Some(value).
Sourcepub fn reset_is_wrapped(&mut self) -> &mut Self
pub fn reset_is_wrapped(&mut self) -> &mut Self
Sets is_wrapped to None.
Sourcepub fn mopt_is_wrapped(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_is_wrapped(&mut self, value: Option<bool>) -> &mut Self
Sets is_wrapped to the given Option.
Sourcepub fn with_is_wrapped(self, value: bool) -> Self
pub fn with_is_wrapped(self, value: bool) -> Self
Returns self with is_wrapped set to Some(value).
Sourcepub fn without_is_wrapped(self) -> Self
pub fn without_is_wrapped(self) -> Self
Returns self with is_wrapped set to None.
Sourcepub fn opt_is_wrapped(self, value: Option<bool>) -> Self
pub fn opt_is_wrapped(self, value: Option<bool>) -> Self
Returns self with is_wrapped set to the given Option.
Trait Implementations§
Source§impl Clone for SlackTableColumnSetting
impl Clone for SlackTableColumnSetting
Source§impl Debug for SlackTableColumnSetting
impl Debug for SlackTableColumnSetting
Source§impl<'de> Deserialize<'de> for SlackTableColumnSetting
impl<'de> Deserialize<'de> for SlackTableColumnSetting
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<SlackTableColumnSettingInit> for SlackTableColumnSetting
impl From<SlackTableColumnSettingInit> for SlackTableColumnSetting
Source§fn from(value: SlackTableColumnSettingInit) -> Self
fn from(value: SlackTableColumnSettingInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackTableColumnSetting
impl PartialEq for SlackTableColumnSetting
Source§impl Serialize for SlackTableColumnSetting
impl Serialize for SlackTableColumnSetting
impl StructuralPartialEq for SlackTableColumnSetting
Auto Trait Implementations§
impl Freeze for SlackTableColumnSetting
impl RefUnwindSafe for SlackTableColumnSetting
impl Send for SlackTableColumnSetting
impl Sync for SlackTableColumnSetting
impl Unpin for SlackTableColumnSetting
impl UnsafeUnpin for SlackTableColumnSetting
impl UnwindSafe for SlackTableColumnSetting
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