Struct tss_esapi::attributes::object::ObjectAttributesBuilder
source · pub struct ObjectAttributesBuilder { /* private fields */ }
Expand description
A builder for ObjectAttributes
Implementations§
source§impl ObjectAttributesBuilder
impl ObjectAttributesBuilder
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates an new ObjectAttributes builder.
sourcepub fn with_fixed_tpm(self, set: bool) -> Self
pub fn with_fixed_tpm(self, set: bool) -> Self
Controls the fixed tpm
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_st_clear(self, set: bool) -> Self
pub fn with_st_clear(self, set: bool) -> Self
Controls the st clear
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_fixed_parent(self, set: bool) -> Self
pub fn with_fixed_parent(self, set: bool) -> Self
Controls the fixed parent
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_sensitive_data_origin(self, set: bool) -> Self
pub fn with_sensitive_data_origin(self, set: bool) -> Self
Controls the sensitive data origin
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_user_with_auth(self, set: bool) -> Self
pub fn with_user_with_auth(self, set: bool) -> Self
Controls the user with auth
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_admin_with_policy(self, set: bool) -> Self
pub fn with_admin_with_policy(self, set: bool) -> Self
Controls the admin with policy
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_no_da(self, set: bool) -> Self
pub fn with_no_da(self, set: bool) -> Self
Controls the no da
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_encrypted_duplication(self, set: bool) -> Self
pub fn with_encrypted_duplication(self, set: bool) -> Self
Controls the encrypted duplication
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_restricted(self, set: bool) -> Self
pub fn with_restricted(self, set: bool) -> Self
Controls the restricted
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_decrypt(self, set: bool) -> Self
pub fn with_decrypt(self, set: bool) -> Self
Controls the decrypt
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_sign_encrypt(self, set: bool) -> Self
pub fn with_sign_encrypt(self, set: bool) -> Self
Controls the sign/encrypt
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn with_x509_sign(self, set: bool) -> Self
pub fn with_x509_sign(self, set: bool) -> Self
Controls the X509 sign
attribute
§Arguments
set
-true
indicates that the attribute should have the value SET.false
indicates that the attribute should have the value CLEAR.
sourcepub fn build(self) -> Result<ObjectAttributes>
pub fn build(self) -> Result<ObjectAttributes>
Builds the nv index attributes.
§Errors
Returns an error if some attributes are missing or are in conflict with each other.
Trait Implementations§
source§impl Clone for ObjectAttributesBuilder
impl Clone for ObjectAttributesBuilder
source§fn clone(&self) -> ObjectAttributesBuilder
fn clone(&self) -> ObjectAttributesBuilder
Returns a copy of the value. Read more
1.0.0 · 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 ObjectAttributesBuilder
impl Debug for ObjectAttributesBuilder
source§impl Default for ObjectAttributesBuilder
impl Default for ObjectAttributesBuilder
source§impl PartialEq for ObjectAttributesBuilder
impl PartialEq for ObjectAttributesBuilder
source§fn eq(&self, other: &ObjectAttributesBuilder) -> bool
fn eq(&self, other: &ObjectAttributesBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ObjectAttributesBuilder
impl Eq for ObjectAttributesBuilder
impl StructuralPartialEq for ObjectAttributesBuilder
Auto Trait Implementations§
impl Freeze for ObjectAttributesBuilder
impl RefUnwindSafe for ObjectAttributesBuilder
impl Send for ObjectAttributesBuilder
impl Sync for ObjectAttributesBuilder
impl Unpin for ObjectAttributesBuilder
impl UnwindSafe for ObjectAttributesBuilder
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