pub struct SectionBuilder { /* private fields */ }Expand description
Builder for Section object.
Implementations§
Source§impl SectionBuilder
impl SectionBuilder
Sourcepub fn get_text(&self) -> Option<&TextContent>
pub fn get_text(&self) -> Option<&TextContent>
get text field value.
Sourcepub fn set_text(self, value: Option<impl Into<TextContent>>) -> Self
pub fn set_text(self, value: Option<impl Into<TextContent>>) -> Self
set text field value.
Sourcepub fn text(self, value: impl Into<TextContent>) -> Self
pub fn text(self, value: impl Into<TextContent>) -> Self
set text field value.
Sourcepub fn get_block_id(&self) -> Option<&String>
pub fn get_block_id(&self) -> Option<&String>
get block_id field value.
Sourcepub fn set_block_id(self, value: Option<impl Into<String>>) -> Self
pub fn set_block_id(self, value: Option<impl Into<String>>) -> Self
set block_id field value.
Sourcepub fn get_fields(&self) -> Option<&[TextContent]>
pub fn get_fields(&self) -> Option<&[TextContent]>
get fields field value.
Sourcepub fn set_fields(self, value: Option<impl Into<Vec<TextContent>>>) -> Self
pub fn set_fields(self, value: Option<impl Into<Vec<TextContent>>>) -> Self
set fields field value.
Sourcepub fn fields(self, value: impl Into<Vec<TextContent>>) -> Self
pub fn fields(self, value: impl Into<Vec<TextContent>>) -> Self
set fields field value.
Sourcepub fn field(self, value: impl Into<TextContent>) -> Self
pub fn field(self, value: impl Into<TextContent>) -> Self
push list element to fields field.
Sourcepub fn get_accessory(&self) -> Option<&Accessory>
pub fn get_accessory(&self) -> Option<&Accessory>
get accessory field value.
Sourcepub fn set_accessory(self, value: Option<impl Into<Accessory>>) -> Self
pub fn set_accessory(self, value: Option<impl Into<Accessory>>) -> Self
set accessory field value.
Sourcepub fn get_expand(&self) -> Option<bool>
pub fn get_expand(&self) -> Option<bool>
get expand field value.
Sourcepub fn set_expand(self, value: Option<impl Into<bool>>) -> Self
pub fn set_expand(self, value: Option<impl Into<bool>>) -> Self
set expand field value.
Trait Implementations§
Source§impl Debug for SectionBuilder
impl Debug for SectionBuilder
Auto Trait Implementations§
impl Freeze for SectionBuilder
impl RefUnwindSafe for SectionBuilder
impl Send for SectionBuilder
impl Sync for SectionBuilder
impl Unpin for SectionBuilder
impl UnsafeUnpin for SectionBuilder
impl UnwindSafe for SectionBuilder
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