pub struct ColumnSetting { /* private fields */ }Expand description
Object as an element of the column_settings field in Table object.
§Fields and Validations
| Field | Type | Required | Validation |
|---|---|---|---|
| align | ColumnAlignment | No | N/A |
| is_wrapped | bool | No | N/A |
§Example
use slack_messaging::blocks::table::{ColumnAlignment, ColumnSetting};
let setting = ColumnSetting::builder()
.align(ColumnAlignment::Center)
.is_wrapped(true)
.build()?;
let expected = serde_json::json!({
"align": "center",
"is_wrapped": true
});
let json = serde_json::to_value(setting).unwrap();
assert_eq!(json, expected);Implementations§
Source§impl ColumnSetting
impl ColumnSetting
Sourcepub fn builder() -> ColumnSettingBuilder
pub fn builder() -> ColumnSettingBuilder
constract ColumnSettingBuilder object.
Trait Implementations§
Source§impl Clone for ColumnSetting
impl Clone for ColumnSetting
Source§fn clone(&self) -> ColumnSetting
fn clone(&self) -> ColumnSetting
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumnSetting
impl Debug for ColumnSetting
Source§impl PartialEq for ColumnSetting
impl PartialEq for ColumnSetting
Source§impl Serialize for ColumnSetting
impl Serialize for ColumnSetting
impl StructuralPartialEq for ColumnSetting
Auto Trait Implementations§
impl Freeze for ColumnSetting
impl RefUnwindSafe for ColumnSetting
impl Send for ColumnSetting
impl Sync for ColumnSetting
impl Unpin for ColumnSetting
impl UnwindSafe for ColumnSetting
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)