pub struct RichTextListBuilder { /* private fields */ }Expand description
Builder for RichTextList object.
Implementations§
Source§impl RichTextListBuilder
impl RichTextListBuilder
Sourcepub fn get_elements(&self) -> Option<&[RichTextSection]>
pub fn get_elements(&self) -> Option<&[RichTextSection]>
get elements field value.
Sourcepub fn set_elements(
self,
value: Option<impl Into<Vec<RichTextSection>>>,
) -> Self
pub fn set_elements( self, value: Option<impl Into<Vec<RichTextSection>>>, ) -> Self
set elements field value.
Sourcepub fn elements(self, value: impl Into<Vec<RichTextSection>>) -> Self
pub fn elements(self, value: impl Into<Vec<RichTextSection>>) -> Self
set elements field value.
Sourcepub fn element(self, value: impl Into<RichTextSection>) -> Self
pub fn element(self, value: impl Into<RichTextSection>) -> Self
push list element to elements field.
Sourcepub fn get_indent(&self) -> Option<i64>
pub fn get_indent(&self) -> Option<i64>
get indent field value.
Sourcepub fn set_indent(self, value: Option<impl Into<i64>>) -> Self
pub fn set_indent(self, value: Option<impl Into<i64>>) -> Self
set indent field value.
Sourcepub fn get_offset(&self) -> Option<i64>
pub fn get_offset(&self) -> Option<i64>
get offset field value.
Sourcepub fn set_offset(self, value: Option<impl Into<i64>>) -> Self
pub fn set_offset(self, value: Option<impl Into<i64>>) -> Self
set offset field value.
Sourcepub fn get_border(&self) -> Option<i64>
pub fn get_border(&self) -> Option<i64>
get border field value.
Sourcepub fn set_border(self, value: Option<impl Into<i64>>) -> Self
pub fn set_border(self, value: Option<impl Into<i64>>) -> Self
set border field value.
Sourcepub fn build(self) -> Result<RichTextList, ValidationErrors>
pub fn build(self) -> Result<RichTextList, ValidationErrors>
build RichTextList object.