pub struct ChapterViewBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> ChapterViewBuilder<'a, Empty>
impl<'a> ChapterViewBuilder<'a, Empty>
Source§impl<'a, S> ChapterViewBuilder<'a, S>
impl<'a, S> ChapterViewBuilder<'a, S>
Set the authors field (required)
Source§impl<'a, S> ChapterViewBuilder<'a, S>
impl<'a, S> ChapterViewBuilder<'a, S>
Source§impl<'a, S: State> ChapterViewBuilder<'a, S>
impl<'a, S: State> ChapterViewBuilder<'a, S>
Sourcepub fn entry_count(self, value: impl Into<Option<i64>>) -> Self
pub fn entry_count(self, value: impl Into<Option<i64>>) -> Self
Set the entryCount field (optional)
Sourcepub fn maybe_entry_count(self, value: Option<i64>) -> Self
pub fn maybe_entry_count(self, value: Option<i64>) -> Self
Set the entryCount field to an Option value (optional)
Source§impl<'a, S> ChapterViewBuilder<'a, S>
impl<'a, S> ChapterViewBuilder<'a, S>
Sourcepub fn indexed_at(
self,
value: impl Into<Datetime>,
) -> ChapterViewBuilder<'a, SetIndexedAt<S>>
pub fn indexed_at( self, value: impl Into<Datetime>, ) -> ChapterViewBuilder<'a, SetIndexedAt<S>>
Set the indexedAt field (required)
Source§impl<'a, S> ChapterViewBuilder<'a, S>
impl<'a, S> ChapterViewBuilder<'a, S>
Sourcepub fn notebook(
self,
value: impl Into<NotebookView<'a>>,
) -> ChapterViewBuilder<'a, SetNotebook<S>>
pub fn notebook( self, value: impl Into<NotebookView<'a>>, ) -> ChapterViewBuilder<'a, SetNotebook<S>>
Set the notebook field (required)
Source§impl<'a, S> ChapterViewBuilder<'a, S>
impl<'a, S> ChapterViewBuilder<'a, S>
Source§impl<'a, S: State> ChapterViewBuilder<'a, S>
impl<'a, S: State> ChapterViewBuilder<'a, S>
Set the tags field (optional)
Set the tags field to an Option value (optional)
Source§impl<'a, S: State> ChapterViewBuilder<'a, S>
impl<'a, S: State> ChapterViewBuilder<'a, S>
Source§impl<'a, S> ChapterViewBuilder<'a, S>
impl<'a, S> ChapterViewBuilder<'a, S>
Source§impl<'a, S> ChapterViewBuilder<'a, S>
impl<'a, S> ChapterViewBuilder<'a, S>
Sourcepub fn build(self) -> ChapterView<'a>
pub fn build(self) -> ChapterView<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> ChapterView<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> ChapterView<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> !Freeze for ChapterViewBuilder<'a, S>
impl<'a, S> RefUnwindSafe for ChapterViewBuilder<'a, S>
impl<'a, S> Send for ChapterViewBuilder<'a, S>
impl<'a, S> Sync for ChapterViewBuilder<'a, S>
impl<'a, S> Unpin for ChapterViewBuilder<'a, S>
impl<'a, S> UnsafeUnpin for ChapterViewBuilder<'a, S>
impl<'a, S> UnwindSafe for ChapterViewBuilder<'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