pub struct KeyBuilder<St: State, S: BosStr = DefaultStr> { /* private fields */ }Expand description
Builder for constructing an instance of this type.
Implementations§
Source§impl KeyBuilder<Empty, DefaultStr>
impl KeyBuilder<Empty, DefaultStr>
Source§impl<S: BosStr> KeyBuilder<Empty, S>
impl<S: BosStr> KeyBuilder<Empty, S>
Source§impl<St, S: BosStr> KeyBuilder<St, S>
impl<St, S: BosStr> KeyBuilder<St, S>
Sourcepub fn created_at(
self,
value: impl Into<Datetime>,
) -> KeyBuilder<SetCreatedAt<St>, S>
pub fn created_at( self, value: impl Into<Datetime>, ) -> KeyBuilder<SetCreatedAt<St>, S>
Set the createdAt field (required)
Source§impl<St: State, S: BosStr> KeyBuilder<St, S>
impl<St: State, S: BosStr> KeyBuilder<St, S>
Sourcepub fn created_by(self, value: impl Into<Option<S>>) -> Self
pub fn created_by(self, value: impl Into<Option<S>>) -> Self
Set the createdBy field (optional)
Sourcepub fn maybe_created_by(self, value: Option<S>) -> Self
pub fn maybe_created_by(self, value: Option<S>) -> Self
Set the createdBy field to an Option value (optional)
Source§impl<St, S: BosStr> KeyBuilder<St, S>
impl<St, S: BosStr> KeyBuilder<St, S>
Sourcepub fn signing_key(
self,
value: impl Into<S>,
) -> KeyBuilder<SetSigningKey<St>, S>
pub fn signing_key( self, value: impl Into<S>, ) -> KeyBuilder<SetSigningKey<St>, S>
Set the signingKey field (required)
Auto Trait Implementations§
impl<St, S> Freeze for KeyBuilder<St, S>where
S: Freeze,
impl<St, S> RefUnwindSafe for KeyBuilder<St, S>where
S: RefUnwindSafe,
impl<St, S> Send for KeyBuilder<St, S>where
S: Send,
impl<St, S> Sync for KeyBuilder<St, S>where
S: Sync,
impl<St, S> Unpin for KeyBuilder<St, S>where
S: Unpin,
impl<St, S> UnsafeUnpin for KeyBuilder<St, S>where
S: UnsafeUnpin,
impl<St, S> UnwindSafe for KeyBuilder<St, S>where
S: UnwindSafe,
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