Struct tss_esapi::attributes::object::ObjectAttributesBuilder
source · [−]pub struct ObjectAttributesBuilder { /* private fields */ }Expand description
A builder for ObjectAttributes
Implementations
sourceimpl 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
sourceimpl Clone for ObjectAttributesBuilder
impl Clone for ObjectAttributesBuilder
sourcefn clone(&self) -> ObjectAttributesBuilder
fn clone(&self) -> ObjectAttributesBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for ObjectAttributesBuilder
impl Debug for ObjectAttributesBuilder
sourceimpl Default for ObjectAttributesBuilder
impl Default for ObjectAttributesBuilder
sourceimpl PartialEq<ObjectAttributesBuilder> for ObjectAttributesBuilder
impl PartialEq<ObjectAttributesBuilder> for ObjectAttributesBuilder
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &ObjectAttributesBuilder) -> bool
fn ne(&self, other: &ObjectAttributesBuilder) -> bool
This method tests for !=.
impl Copy for ObjectAttributesBuilder
impl Eq for ObjectAttributesBuilder
impl StructuralEq for ObjectAttributesBuilder
impl StructuralPartialEq for ObjectAttributesBuilder
Auto Trait Implementations
impl RefUnwindSafe for ObjectAttributesBuilder
impl Send for ObjectAttributesBuilder
impl Sync for ObjectAttributesBuilder
impl Unpin for ObjectAttributesBuilder
impl UnwindSafe for ObjectAttributesBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more