pub struct MessageViewBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl<S: BosStr> MessageViewBuilder<Empty, S>
impl<S: BosStr> MessageViewBuilder<Empty, S>
Source§impl<St, S: BosStr> MessageViewBuilder<St, S>
impl<St, S: BosStr> MessageViewBuilder<St, S>
Set the author field (required)
Source§impl<St: State, S: BosStr> MessageViewBuilder<St, S>
impl<St: State, S: BosStr> MessageViewBuilder<St, S>
Source§impl<St: State, S: BosStr> MessageViewBuilder<St, S>
impl<St: State, S: BosStr> MessageViewBuilder<St, S>
Sourcepub fn chat_profile(self, value: impl Into<Option<Profile<S>>>) -> Self
pub fn chat_profile(self, value: impl Into<Option<Profile<S>>>) -> Self
Set the chatProfile field (optional)
Sourcepub fn maybe_chat_profile(self, value: Option<Profile<S>>) -> Self
pub fn maybe_chat_profile(self, value: Option<Profile<S>>) -> Self
Set the chatProfile field to an Option value (optional)
Source§impl<St, S: BosStr> MessageViewBuilder<St, S>
impl<St, S: BosStr> MessageViewBuilder<St, S>
Source§impl<St: State, S: BosStr> MessageViewBuilder<St, S>
impl<St: State, S: BosStr> MessageViewBuilder<St, S>
Source§impl<St, S: BosStr> MessageViewBuilder<St, S>
impl<St, S: BosStr> MessageViewBuilder<St, S>
Sourcepub fn indexed_at(
self,
value: impl Into<Datetime>,
) -> MessageViewBuilder<SetIndexedAt<St>, S>
pub fn indexed_at( self, value: impl Into<Datetime>, ) -> MessageViewBuilder<SetIndexedAt<St>, S>
Set the indexedAt field (required)
Source§impl<St, S: BosStr> MessageViewBuilder<St, S>
impl<St, S: BosStr> MessageViewBuilder<St, S>
Source§impl<St: State, S: BosStr> MessageViewBuilder<St, S>
impl<St: State, S: BosStr> MessageViewBuilder<St, S>
Sourcepub fn reply_to(self, value: impl Into<Option<MessageViewReplyTo<S>>>) -> Self
pub fn reply_to(self, value: impl Into<Option<MessageViewReplyTo<S>>>) -> Self
Set the replyTo field (optional)
Sourcepub fn maybe_reply_to(self, value: Option<MessageViewReplyTo<S>>) -> Self
pub fn maybe_reply_to(self, value: Option<MessageViewReplyTo<S>>) -> Self
Set the replyTo field to an Option value (optional)
Source§impl<St, S: BosStr> MessageViewBuilder<St, S>
impl<St, S: BosStr> MessageViewBuilder<St, S>
Source§impl<St, S: BosStr> MessageViewBuilder<St, S>
impl<St, S: BosStr> MessageViewBuilder<St, S>
Sourcepub fn build(self) -> MessageView<S>
pub fn build(self) -> MessageView<S>
Build the final struct.
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<S>>,
) -> MessageView<S>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<S>>, ) -> MessageView<S>
Build the final struct with custom extra_data.
Auto Trait Implementations§
impl<St, S = SmolStr> !Freeze for MessageViewBuilder<St, S>
impl<St, S> RefUnwindSafe for MessageViewBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for MessageViewBuilder<St, S>where
S: Send,
impl<St, S> Sync for MessageViewBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for MessageViewBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for MessageViewBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for MessageViewBuilder<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