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