pub struct UpdateReadingProgressBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> UpdateReadingProgressBuilder<'a, Empty>
impl<'a> UpdateReadingProgressBuilder<'a, Empty>
Source§impl<'a, S: State> UpdateReadingProgressBuilder<'a, S>
impl<'a, S: State> UpdateReadingProgressBuilder<'a, S>
Sourcepub fn current_entry(self, value: impl Into<Option<AtUri<'a>>>) -> Self
pub fn current_entry(self, value: impl Into<Option<AtUri<'a>>>) -> Self
Set the currentEntry field (optional)
Sourcepub fn maybe_current_entry(self, value: Option<AtUri<'a>>) -> Self
pub fn maybe_current_entry(self, value: Option<AtUri<'a>>) -> Self
Set the currentEntry field to an Option value (optional)
Source§impl<'a, S> UpdateReadingProgressBuilder<'a, S>
impl<'a, S> UpdateReadingProgressBuilder<'a, S>
Sourcepub fn notebook(
self,
value: impl Into<AtUri<'a>>,
) -> UpdateReadingProgressBuilder<'a, SetNotebook<S>>
pub fn notebook( self, value: impl Into<AtUri<'a>>, ) -> UpdateReadingProgressBuilder<'a, SetNotebook<S>>
Set the notebook field (required)
Source§impl<'a, S: State> UpdateReadingProgressBuilder<'a, S>
impl<'a, S: State> UpdateReadingProgressBuilder<'a, S>
Sourcepub fn percent_complete(self, value: impl Into<Option<i64>>) -> Self
pub fn percent_complete(self, value: impl Into<Option<i64>>) -> Self
Set the percentComplete field (optional)
Sourcepub fn maybe_percent_complete(self, value: Option<i64>) -> Self
pub fn maybe_percent_complete(self, value: Option<i64>) -> Self
Set the percentComplete field to an Option value (optional)
Source§impl<'a, S: State> UpdateReadingProgressBuilder<'a, S>
impl<'a, S: State> UpdateReadingProgressBuilder<'a, S>
Sourcepub fn status(
self,
value: impl Into<Option<UpdateReadingProgressStatus<'a>>>,
) -> Self
pub fn status( self, value: impl Into<Option<UpdateReadingProgressStatus<'a>>>, ) -> Self
Set the status field (optional)
Sourcepub fn maybe_status(
self,
value: Option<UpdateReadingProgressStatus<'a>>,
) -> Self
pub fn maybe_status( self, value: Option<UpdateReadingProgressStatus<'a>>, ) -> Self
Set the status field to an Option value (optional)
Source§impl<'a, S> UpdateReadingProgressBuilder<'a, S>
impl<'a, S> UpdateReadingProgressBuilder<'a, S>
Sourcepub fn build(self) -> UpdateReadingProgress<'a>
pub fn build(self) -> UpdateReadingProgress<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> UpdateReadingProgress<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> UpdateReadingProgress<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> Freeze for UpdateReadingProgressBuilder<'a, S>
impl<'a, S> RefUnwindSafe for UpdateReadingProgressBuilder<'a, S>
impl<'a, S> Send for UpdateReadingProgressBuilder<'a, S>
impl<'a, S> Sync for UpdateReadingProgressBuilder<'a, S>
impl<'a, S> Unpin for UpdateReadingProgressBuilder<'a, S>
impl<'a, S> UnsafeUnpin for UpdateReadingProgressBuilder<'a, S>
impl<'a, S> UnwindSafe for UpdateReadingProgressBuilder<'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