pub struct AdvancedCapabilityBuilder { /* private fields */ }
Expand description
Builder for AdvancedCapability with fluent API
Implementations§
Source§impl AdvancedCapabilityBuilder
impl AdvancedCapabilityBuilder
Sourcepub fn with_secret_key(self, key: Vec<u8>) -> Self
pub fn with_secret_key(self, key: Vec<u8>) -> Self
Set the secret key for token encryption
Sourcepub fn with_token_ttl(self, ttl: u64) -> Self
pub fn with_token_ttl(self, ttl: u64) -> Self
Set token time-to-live in seconds
Sourcepub fn with_max_session_age(self, age: u64) -> Self
pub fn with_max_session_age(self, age: u64) -> Self
Set maximum session age in seconds
Sourcepub fn with_max_capabilities(self, max: usize) -> Self
pub fn with_max_capabilities(self, max: usize) -> Self
Set maximum number of capabilities
Sourcepub fn with_max_plan_operations(self, max: usize) -> Self
pub fn with_max_plan_operations(self, max: usize) -> Self
Set maximum operations per plan
Sourcepub fn with_plan_timeout(self, timeout_ms: u64) -> Self
pub fn with_plan_timeout(self, timeout_ms: u64) -> Self
Set plan execution timeout in milliseconds
Sourcepub fn build(self) -> AdvancedCapability
pub fn build(self) -> AdvancedCapability
Build the AdvancedCapability instance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdvancedCapabilityBuilder
impl RefUnwindSafe for AdvancedCapabilityBuilder
impl Send for AdvancedCapabilityBuilder
impl Sync for AdvancedCapabilityBuilder
impl Unpin for AdvancedCapabilityBuilder
impl UnwindSafe for AdvancedCapabilityBuilder
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