pub struct CardBuilder { /* private fields */ }Expand description
Builder for Card object.
Implementations§
Source§impl CardBuilder
impl CardBuilder
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_hero_image(&self) -> Option<&Image>
pub fn get_hero_image(&self) -> Option<&Image>
get hero_image field value.
Sourcepub fn set_hero_image(self, value: Option<impl Into<Image>>) -> Self
pub fn set_hero_image(self, value: Option<impl Into<Image>>) -> Self
set hero_image field value.
Sourcepub fn hero_image(self, value: impl Into<Image>) -> Self
pub fn hero_image(self, value: impl Into<Image>) -> Self
set hero_image field value.
Sourcepub fn get_subtitle(&self) -> Option<&Text>
pub fn get_subtitle(&self) -> Option<&Text>
get subtitle field value.
Sourcepub fn set_subtitle(self, value: Option<impl Into<Text>>) -> Self
pub fn set_subtitle(self, value: Option<impl Into<Text>>) -> Self
set subtitle field value.
Sourcepub fn get_actions(&self) -> Option<&[Button]>
pub fn get_actions(&self) -> Option<&[Button]>
get actions field value.
Sourcepub fn set_actions<Iter, Inner>(self, value: Option<Iter>) -> Self
pub fn set_actions<Iter, Inner>(self, value: Option<Iter>) -> Self
set actions field value.
Trait Implementations§
Source§impl Debug for CardBuilder
impl Debug for CardBuilder
Auto Trait Implementations§
impl Freeze for CardBuilder
impl RefUnwindSafe for CardBuilder
impl Send for CardBuilder
impl Sync for CardBuilder
impl Unpin for CardBuilder
impl UnsafeUnpin for CardBuilder
impl UnwindSafe for CardBuilder
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