pub struct DocumentBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> DocumentBuilder<'a, Empty>
impl<'a> DocumentBuilder<'a, Empty>
Source§impl<'a, S> DocumentBuilder<'a, S>
impl<'a, S> DocumentBuilder<'a, S>
Set the author field (required)
Source§impl<'a, S: State> DocumentBuilder<'a, S>
impl<'a, S: State> DocumentBuilder<'a, S>
Sourcepub fn description(self, value: impl Into<Option<CowStr<'a>>>) -> Self
pub fn description(self, value: impl Into<Option<CowStr<'a>>>) -> Self
Set the description field (optional)
Sourcepub fn maybe_description(self, value: Option<CowStr<'a>>) -> Self
pub fn maybe_description(self, value: Option<CowStr<'a>>) -> Self
Set the description field to an Option value (optional)
Source§impl<'a, S> DocumentBuilder<'a, S>
impl<'a, S> DocumentBuilder<'a, S>
Sourcepub fn pages(
self,
value: impl Into<Vec<DocumentPagesItem<'a>>>,
) -> DocumentBuilder<'a, SetPages<S>>
pub fn pages( self, value: impl Into<Vec<DocumentPagesItem<'a>>>, ) -> DocumentBuilder<'a, SetPages<S>>
Set the pages field (required)
Source§impl<'a, S: State> DocumentBuilder<'a, S>
impl<'a, S: State> DocumentBuilder<'a, S>
Source§impl<'a, S> DocumentBuilder<'a, S>
impl<'a, S> DocumentBuilder<'a, S>
Sourcepub fn publication(
self,
value: impl Into<AtUri<'a>>,
) -> DocumentBuilder<'a, SetPublication<S>>
pub fn publication( self, value: impl Into<AtUri<'a>>, ) -> DocumentBuilder<'a, SetPublication<S>>
Set the publication field (required)
Source§impl<'a, S: State> DocumentBuilder<'a, S>
impl<'a, S: State> DocumentBuilder<'a, S>
Sourcepub fn published_at(self, value: impl Into<Option<Datetime>>) -> Self
pub fn published_at(self, value: impl Into<Option<Datetime>>) -> Self
Set the publishedAt field (optional)
Sourcepub fn maybe_published_at(self, value: Option<Datetime>) -> Self
pub fn maybe_published_at(self, value: Option<Datetime>) -> Self
Set the publishedAt field to an Option value (optional)
Source§impl<'a, S> DocumentBuilder<'a, S>
impl<'a, S> DocumentBuilder<'a, S>
Source§impl<'a, S> DocumentBuilder<'a, S>
impl<'a, S> DocumentBuilder<'a, S>
Auto Trait Implementations§
impl<'a, S> Freeze for DocumentBuilder<'a, S>
impl<'a, S> RefUnwindSafe for DocumentBuilder<'a, S>
impl<'a, S> Send for DocumentBuilder<'a, S>
impl<'a, S> Sync for DocumentBuilder<'a, S>
impl<'a, S> Unpin for DocumentBuilder<'a, S>
impl<'a, S> UnwindSafe for DocumentBuilder<'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