#[non_exhaustive]pub struct ColumnProperties {
pub header: String,
pub horizontal_alignment: HorizontalAlignment,
/* private fields */
}Available on crate features
answer-records or intents or participants or sessions only.Expand description
Column properties for TableCard.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.header: StringRequired. Column heading.
horizontal_alignment: HorizontalAlignmentOptional. Defines text alignment for all cells in this column.
Implementations§
Source§impl ColumnProperties
impl ColumnProperties
pub fn new() -> Self
Sourcepub fn set_header<T: Into<String>>(self, v: T) -> Self
pub fn set_header<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_horizontal_alignment<T: Into<HorizontalAlignment>>(
self,
v: T,
) -> Self
pub fn set_horizontal_alignment<T: Into<HorizontalAlignment>>( self, v: T, ) -> Self
Sets the value of horizontal_alignment.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::intent::message::column_properties::HorizontalAlignment;
let x0 = ColumnProperties::new().set_horizontal_alignment(HorizontalAlignment::Leading);
let x1 = ColumnProperties::new().set_horizontal_alignment(HorizontalAlignment::Center);
let x2 = ColumnProperties::new().set_horizontal_alignment(HorizontalAlignment::Trailing);Trait Implementations§
Source§impl Clone for ColumnProperties
impl Clone for ColumnProperties
Source§fn clone(&self) -> ColumnProperties
fn clone(&self) -> ColumnProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ColumnProperties
impl Debug for ColumnProperties
Source§impl Default for ColumnProperties
impl Default for ColumnProperties
Source§fn default() -> ColumnProperties
fn default() -> ColumnProperties
Returns the “default value” for a type. Read more
Source§impl Message for ColumnProperties
impl Message for ColumnProperties
Source§impl PartialEq for ColumnProperties
impl PartialEq for ColumnProperties
impl StructuralPartialEq for ColumnProperties
Auto Trait Implementations§
impl Freeze for ColumnProperties
impl RefUnwindSafe for ColumnProperties
impl Send for ColumnProperties
impl Sync for ColumnProperties
impl Unpin for ColumnProperties
impl UnwindSafe for ColumnProperties
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