pub struct NotificationBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> NotificationBuilder<'a, Empty>
impl<'a> NotificationBuilder<'a, Empty>
Source§impl<'a, S> NotificationBuilder<'a, S>
impl<'a, S> NotificationBuilder<'a, S>
Set the author field (required)
Source§impl<'a, S> NotificationBuilder<'a, S>
impl<'a, S> NotificationBuilder<'a, S>
Source§impl<'a, S> NotificationBuilder<'a, S>
impl<'a, S> NotificationBuilder<'a, S>
Sourcepub fn indexed_at(
self,
value: impl Into<Datetime>,
) -> NotificationBuilder<'a, SetIndexedAt<S>>
pub fn indexed_at( self, value: impl Into<Datetime>, ) -> NotificationBuilder<'a, SetIndexedAt<S>>
Set the indexedAt field (required)
Source§impl<'a, S> NotificationBuilder<'a, S>
impl<'a, S> NotificationBuilder<'a, S>
Source§impl<'a, S> NotificationBuilder<'a, S>
impl<'a, S> NotificationBuilder<'a, S>
Sourcepub fn reason(
self,
value: impl Into<NotificationReason<'a>>,
) -> NotificationBuilder<'a, SetReason<S>>
pub fn reason( self, value: impl Into<NotificationReason<'a>>, ) -> NotificationBuilder<'a, SetReason<S>>
Set the reason field (required)
Source§impl<'a, S: State> NotificationBuilder<'a, S>
impl<'a, S: State> NotificationBuilder<'a, S>
Sourcepub fn reason_subject(self, value: impl Into<Option<AtUri<'a>>>) -> Self
pub fn reason_subject(self, value: impl Into<Option<AtUri<'a>>>) -> Self
Set the reasonSubject field (optional)
Sourcepub fn maybe_reason_subject(self, value: Option<AtUri<'a>>) -> Self
pub fn maybe_reason_subject(self, value: Option<AtUri<'a>>) -> Self
Set the reasonSubject field to an Option value (optional)
Source§impl<'a, S: State> NotificationBuilder<'a, S>
impl<'a, S: State> NotificationBuilder<'a, S>
Source§impl<'a, S> NotificationBuilder<'a, S>
impl<'a, S> NotificationBuilder<'a, S>
Source§impl<'a, S> NotificationBuilder<'a, S>
impl<'a, S> NotificationBuilder<'a, S>
Sourcepub fn build(self) -> Notification<'a>
pub fn build(self) -> Notification<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> Notification<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> Notification<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> !Freeze for NotificationBuilder<'a, S>
impl<'a, S> RefUnwindSafe for NotificationBuilder<'a, S>
impl<'a, S> Send for NotificationBuilder<'a, S>
impl<'a, S> Sync for NotificationBuilder<'a, S>
impl<'a, S> Unpin for NotificationBuilder<'a, S>
impl<'a, S> UnsafeUnpin for NotificationBuilder<'a, S>
impl<'a, S> UnwindSafe for NotificationBuilder<'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