pub struct DialogShownEventParamsBuilder { /* private fields */ }Expand description
Builder for DialogShownEventParams.
Implementations§
Source§impl DialogShownEventParamsBuilder
impl DialogShownEventParamsBuilder
pub fn dialog_id(&mut self, value: String) -> &mut Self
pub fn dialog_type(&mut self, value: DialogType) -> &mut Self
pub fn accounts(&mut self, value: Vec<Account>) -> &mut Self
Sourcepub fn title(&mut self, value: String) -> &mut Self
pub fn title(&mut self, value: String) -> &mut Self
These exist primarily so that the caller can verify the RP context was used appropriately.
pub fn subtitle(&mut self, value: Option<String>) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<DialogShownEventParams, DialogShownEventParamsBuilderError>
pub fn build( &self, ) -> Result<DialogShownEventParams, DialogShownEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for DialogShownEventParamsBuilder
impl Clone for DialogShownEventParamsBuilder
Source§fn clone(&self) -> DialogShownEventParamsBuilder
fn clone(&self) -> DialogShownEventParamsBuilder
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 moreAuto Trait Implementations§
impl Freeze for DialogShownEventParamsBuilder
impl RefUnwindSafe for DialogShownEventParamsBuilder
impl Send for DialogShownEventParamsBuilder
impl Sync for DialogShownEventParamsBuilder
impl Unpin for DialogShownEventParamsBuilder
impl UnsafeUnpin for DialogShownEventParamsBuilder
impl UnwindSafe for DialogShownEventParamsBuilder
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