pub struct LogCreateMessageBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> LogCreateMessageBuilder<Empty, S>
impl<S: BosStr> LogCreateMessageBuilder<Empty, S>
Source§impl<St, S: BosStr> LogCreateMessageBuilder<St, S>
impl<St, S: BosStr> LogCreateMessageBuilder<St, S>
Sourcepub fn convo_id(
self,
value: impl Into<S>,
) -> LogCreateMessageBuilder<SetConvoId<St>, S>
pub fn convo_id( self, value: impl Into<S>, ) -> LogCreateMessageBuilder<SetConvoId<St>, S>
Set the convoId field (required)
Source§impl<St, S: BosStr> LogCreateMessageBuilder<St, S>
impl<St, S: BosStr> LogCreateMessageBuilder<St, S>
Sourcepub fn message(
self,
value: impl Into<LogCreateMessageMessage<S>>,
) -> LogCreateMessageBuilder<SetMessage<St>, S>
pub fn message( self, value: impl Into<LogCreateMessageMessage<S>>, ) -> LogCreateMessageBuilder<SetMessage<St>, S>
Set the message field (required)
Source§impl<St: State, S: BosStr> LogCreateMessageBuilder<St, S>
impl<St: State, S: BosStr> LogCreateMessageBuilder<St, S>
Set the relatedProfiles field (optional)
Set the relatedProfiles field to an Option value (optional)
Source§impl<St, S: BosStr> LogCreateMessageBuilder<St, S>
impl<St, S: BosStr> LogCreateMessageBuilder<St, S>
Sourcepub fn rev(self, value: impl Into<S>) -> LogCreateMessageBuilder<SetRev<St>, S>
pub fn rev(self, value: impl Into<S>) -> LogCreateMessageBuilder<SetRev<St>, S>
Set the rev field (required)
Source§impl<St, S: BosStr> LogCreateMessageBuilder<St, S>
impl<St, S: BosStr> LogCreateMessageBuilder<St, S>
Sourcepub fn build(self) -> LogCreateMessage<S>
pub fn build(self) -> LogCreateMessage<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> LogCreateMessage<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> LogCreateMessage<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S = SmolStr> !Freeze for LogCreateMessageBuilder<St, S>
impl<St, S> RefUnwindSafe for LogCreateMessageBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for LogCreateMessageBuilder<St, S>where
S: Send,
impl<St, S> Sync for LogCreateMessageBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for LogCreateMessageBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for LogCreateMessageBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for LogCreateMessageBuilder<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