pub struct ActorIdentityBuilder { /* private fields */ }Expand description
Builder for ActorIdentity.
Implementations§
Source§impl ActorIdentityBuilder
impl ActorIdentityBuilder
Sourcepub fn actor_type(self, t: ActorType) -> Self
pub fn actor_type(self, t: ActorType) -> Self
Set the actor type.
Sourcepub fn signing_key(self, key: SigningKeyHandle) -> Self
pub fn signing_key(self, key: SigningKeyHandle) -> Self
Set the signing key handle.
Sourcepub fn encryption_key(self, key: EncryptionKeyHandle) -> Self
pub fn encryption_key(self, key: EncryptionKeyHandle) -> Self
Set the encryption key handle.
Sourcepub fn certificate_chain(self, chain: Vec<Vec<u8>>) -> Self
pub fn certificate_chain(self, chain: Vec<Vec<u8>>) -> Self
Set the certificate chain.
Sourcepub fn hardware_token(self, token: HardwareToken) -> Self
pub fn hardware_token(self, token: HardwareToken) -> Self
Set the hardware token.
Sourcepub fn attributes(self, attrs: SignerAttributes) -> Self
pub fn attributes(self, attrs: SignerAttributes) -> Self
Set the attributes.
Sourcepub fn expires_at(self, when: DateTime<Utc>) -> Self
pub fn expires_at(self, when: DateTime<Utc>) -> Self
Set the expiry time.
Sourcepub fn build(self) -> Result<ActorIdentity, IdentityError>
pub fn build(self) -> Result<ActorIdentity, IdentityError>
Build the identity.
Trait Implementations§
Source§impl Clone for ActorIdentityBuilder
impl Clone for ActorIdentityBuilder
Source§fn clone(&self) -> ActorIdentityBuilder
fn clone(&self) -> ActorIdentityBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ActorIdentityBuilder
impl Debug for ActorIdentityBuilder
Source§impl Default for ActorIdentityBuilder
impl Default for ActorIdentityBuilder
Source§fn default() -> ActorIdentityBuilder
fn default() -> ActorIdentityBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ActorIdentityBuilder
impl RefUnwindSafe for ActorIdentityBuilder
impl Send for ActorIdentityBuilder
impl Sync for ActorIdentityBuilder
impl Unpin for ActorIdentityBuilder
impl UnsafeUnpin for ActorIdentityBuilder
impl UnwindSafe for ActorIdentityBuilder
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