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>
Sourcepub fn blocks(
self,
value: impl Into<Vec<DocumentBlocksItem<'a>>>,
) -> DocumentBuilder<'a, SetBlocks<S>>
pub fn blocks( self, value: impl Into<Vec<DocumentBlocksItem<'a>>>, ) -> DocumentBuilder<'a, SetBlocks<S>>
Set the blocks field (required)
Source§impl<'a, S> DocumentBuilder<'a, S>
impl<'a, S> DocumentBuilder<'a, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> DocumentBuilder<'a, SetCreatedAt<S>>
pub fn created_at( self, value: impl Into<Datetime>, ) -> DocumentBuilder<'a, SetCreatedAt<S>>
Set the createdAt field (required)
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>
Source§impl<'a, S: State> DocumentBuilder<'a, S>
impl<'a, S: State> DocumentBuilder<'a, S>
Sourcepub fn updated_at(self, value: impl Into<Option<Datetime>>) -> Self
pub fn updated_at(self, value: impl Into<Option<Datetime>>) -> Self
Set the updatedAt field (optional)
Sourcepub fn maybe_updated_at(self, value: Option<Datetime>) -> Self
pub fn maybe_updated_at(self, value: Option<Datetime>) -> Self
Set the updatedAt field to an Option value (optional)
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> UnsafeUnpin 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