pub struct SystemMessageViewBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> SystemMessageViewBuilder<Empty, S>
impl<S: BosStr> SystemMessageViewBuilder<Empty, S>
Source§impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
Sourcepub fn data(
self,
value: impl Into<SystemMessageViewData<S>>,
) -> SystemMessageViewBuilder<SetData<St>, S>
pub fn data( self, value: impl Into<SystemMessageViewData<S>>, ) -> SystemMessageViewBuilder<SetData<St>, S>
Set the data field (required)
Source§impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
Sourcepub fn id(self, value: impl Into<S>) -> SystemMessageViewBuilder<SetId<St>, S>
pub fn id(self, value: impl Into<S>) -> SystemMessageViewBuilder<SetId<St>, S>
Set the id field (required)
Source§impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
Sourcepub fn rev(self, value: impl Into<S>) -> SystemMessageViewBuilder<SetRev<St>, S>
pub fn rev(self, value: impl Into<S>) -> SystemMessageViewBuilder<SetRev<St>, S>
Set the rev field (required)
Source§impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
Source§impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
impl<St, S: BosStr> SystemMessageViewBuilder<St, S>
Sourcepub fn build(self) -> SystemMessageView<S>
pub fn build(self) -> SystemMessageView<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> SystemMessageView<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> SystemMessageView<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S = SmolStr> !Freeze for SystemMessageViewBuilder<St, S>
impl<St, S> RefUnwindSafe for SystemMessageViewBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for SystemMessageViewBuilder<St, S>where
S: Send,
impl<St, S> Sync for SystemMessageViewBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for SystemMessageViewBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for SystemMessageViewBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for SystemMessageViewBuilder<St, S>where
S: UnwindSafe + RefUnwindSafe,
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