pub struct DefsOptionBuilder<'a, S: State> { /* private fields */ }Expand description
Builder for constructing an instance of this type
Implementations§
Source§impl<'a> DefsOptionBuilder<'a, Empty>
impl<'a> DefsOptionBuilder<'a, Empty>
Source§impl<'a, S: State> DefsOptionBuilder<'a, S>
impl<'a, S: State> DefsOptionBuilder<'a, S>
Sourcepub fn created_at(self, value: impl Into<Option<Datetime>>) -> Self
pub fn created_at(self, value: impl Into<Option<Datetime>>) -> Self
Set the createdAt field (optional)
Sourcepub fn maybe_created_at(self, value: Option<Datetime>) -> Self
pub fn maybe_created_at(self, value: Option<Datetime>) -> Self
Set the createdAt field to an Option value (optional)
Source§impl<'a, S> DefsOptionBuilder<'a, S>
impl<'a, S> DefsOptionBuilder<'a, S>
Sourcepub fn created_by(
self,
value: impl Into<Did<'a>>,
) -> DefsOptionBuilder<'a, SetCreatedBy<S>>
pub fn created_by( self, value: impl Into<Did<'a>>, ) -> DefsOptionBuilder<'a, SetCreatedBy<S>>
Set the createdBy field (required)
Source§impl<'a, S: State> DefsOptionBuilder<'a, S>
impl<'a, S: State> DefsOptionBuilder<'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> DefsOptionBuilder<'a, S>
impl<'a, S> DefsOptionBuilder<'a, S>
Source§impl<'a, S> DefsOptionBuilder<'a, S>
impl<'a, S> DefsOptionBuilder<'a, S>
Source§impl<'a, S> DefsOptionBuilder<'a, S>
impl<'a, S> DefsOptionBuilder<'a, S>
Sourcepub fn last_updated_by(
self,
value: impl Into<Did<'a>>,
) -> DefsOptionBuilder<'a, SetLastUpdatedBy<S>>
pub fn last_updated_by( self, value: impl Into<Did<'a>>, ) -> DefsOptionBuilder<'a, SetLastUpdatedBy<S>>
Set the lastUpdatedBy field (required)
Source§impl<'a, S: State> DefsOptionBuilder<'a, S>
impl<'a, S: State> DefsOptionBuilder<'a, S>
Sourcepub fn manager_role(self, value: impl Into<Option<CowStr<'a>>>) -> Self
pub fn manager_role(self, value: impl Into<Option<CowStr<'a>>>) -> Self
Set the managerRole field (optional)
Sourcepub fn maybe_manager_role(self, value: Option<CowStr<'a>>) -> Self
pub fn maybe_manager_role(self, value: Option<CowStr<'a>>) -> Self
Set the managerRole field to an Option value (optional)
Source§impl<'a, S> DefsOptionBuilder<'a, S>
impl<'a, S> DefsOptionBuilder<'a, S>
Source§impl<'a, S: State> DefsOptionBuilder<'a, S>
impl<'a, S: State> DefsOptionBuilder<'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> DefsOptionBuilder<'a, S>
impl<'a, S> DefsOptionBuilder<'a, S>
Source§impl<'a, S> DefsOptionBuilder<'a, S>
impl<'a, S> DefsOptionBuilder<'a, S>
Sourcepub fn build(self) -> DefsOption<'a>
pub fn build(self) -> DefsOption<'a>
Build the final struct
Sourcepub fn build_with_data(
self,
extra_data: BTreeMap<SmolStr, Data<'a>>,
) -> DefsOption<'a>
pub fn build_with_data( self, extra_data: BTreeMap<SmolStr, Data<'a>>, ) -> DefsOption<'a>
Build the final struct with custom extra_data
Auto Trait Implementations§
impl<'a, S> !Freeze for DefsOptionBuilder<'a, S>
impl<'a, S> RefUnwindSafe for DefsOptionBuilder<'a, S>
impl<'a, S> Send for DefsOptionBuilder<'a, S>
impl<'a, S> Sync for DefsOptionBuilder<'a, S>
impl<'a, S> Unpin for DefsOptionBuilder<'a, S>
impl<'a, S> UnwindSafe for DefsOptionBuilder<'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