pub struct ModEventViewBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ModEventViewBuilder<'a, Empty>
impl<'a> ModEventViewBuilder<'a, Empty>
Source§impl<'a, S> ModEventViewBuilder<'a, S>
impl<'a, S> ModEventViewBuilder<'a, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> ModEventViewBuilder<'a, SetCreatedAt<S>>
pub fn created_at( self, value: impl Into<Datetime>, ) -> ModEventViewBuilder<'a, SetCreatedAt<S>>
Set the createdAt field (required)
Source§impl<'a, S> ModEventViewBuilder<'a, S>
impl<'a, S> ModEventViewBuilder<'a, S>
Sourcepub fn created_by(
self,
value: impl Into<Did<'a>>,
) -> ModEventViewBuilder<'a, SetCreatedBy<S>>
pub fn created_by( self, value: impl Into<Did<'a>>, ) -> ModEventViewBuilder<'a, SetCreatedBy<S>>
Set the createdBy field (required)
Source§impl<'a, S: State> ModEventViewBuilder<'a, S>
impl<'a, S: State> ModEventViewBuilder<'a, S>
Sourcepub fn creator_handle(self, value: impl Into<Option<CowStr<'a>>>) -> Self
pub fn creator_handle(self, value: impl Into<Option<CowStr<'a>>>) -> Self
Set the creatorHandle field (optional)
Sourcepub fn maybe_creator_handle(self, value: Option<CowStr<'a>>) -> Self
pub fn maybe_creator_handle(self, value: Option<CowStr<'a>>) -> Self
Set the creatorHandle field to an Option value (optional)
Source§impl<'a, S> ModEventViewBuilder<'a, S>
impl<'a, S> ModEventViewBuilder<'a, S>
Sourcepub fn event(
self,
value: impl Into<ModEventViewEvent<'a>>,
) -> ModEventViewBuilder<'a, SetEvent<S>>
pub fn event( self, value: impl Into<ModEventViewEvent<'a>>, ) -> ModEventViewBuilder<'a, SetEvent<S>>
Set the event field (required)
Source§impl<'a, S> ModEventViewBuilder<'a, S>
impl<'a, S> ModEventViewBuilder<'a, S>
Source§impl<'a, S: State> ModEventViewBuilder<'a, S>
impl<'a, S: State> ModEventViewBuilder<'a, S>
Source§impl<'a, S> ModEventViewBuilder<'a, S>
impl<'a, S> ModEventViewBuilder<'a, S>
Sourcepub fn subject(
self,
value: impl Into<ModEventViewSubject<'a>>,
) -> ModEventViewBuilder<'a, SetSubject<S>>
pub fn subject( self, value: impl Into<ModEventViewSubject<'a>>, ) -> ModEventViewBuilder<'a, SetSubject<S>>
Set the subject field (required)
Source§impl<'a, S> ModEventViewBuilder<'a, S>
impl<'a, S> ModEventViewBuilder<'a, S>
Sourcepub fn subject_blob_cids(
self,
value: impl Into<Vec<CowStr<'a>>>,
) -> ModEventViewBuilder<'a, SetSubjectBlobCids<S>>
pub fn subject_blob_cids( self, value: impl Into<Vec<CowStr<'a>>>, ) -> ModEventViewBuilder<'a, SetSubjectBlobCids<S>>
Set the subjectBlobCids field (required)
Source§impl<'a, S: State> ModEventViewBuilder<'a, S>
impl<'a, S: State> ModEventViewBuilder<'a, S>
Sourcepub fn subject_handle(self, value: impl Into<Option<CowStr<'a>>>) -> Self
pub fn subject_handle(self, value: impl Into<Option<CowStr<'a>>>) -> Self
Set the subjectHandle field (optional)
Sourcepub fn maybe_subject_handle(self, value: Option<CowStr<'a>>) -> Self
pub fn maybe_subject_handle(self, value: Option<CowStr<'a>>) -> Self
Set the subjectHandle field to an Option value (optional)
Source§impl<'a, S> ModEventViewBuilder<'a, S>
impl<'a, S> ModEventViewBuilder<'a, S>
Sourcepub fn build(self) -> ModEventView<'a>
pub fn build(self) -> ModEventView<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> ModEventView<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> ModEventView<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> !Freeze for ModEventViewBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ModEventViewBuilder<'a, S>
impl<'a, S> Send for ModEventViewBuilder<'a, S>
impl<'a, S> Sync for ModEventViewBuilder<'a, S>
impl<'a, S> Unpin for ModEventViewBuilder<'a, S>
impl<'a, S> UnwindSafe for ModEventViewBuilder<'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