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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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-trueindicates that the attribute should have the value SET.falseindicates 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<ObjectAttributesBuilder> for ObjectAttributesBuilder
impl PartialEq<ObjectAttributesBuilder> 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 ==.