pub struct AgentSetupConfigBuilder { /* private fields */ }Expand description
Builder for AgentSetupConfig.
Implementations§
Source§impl AgentSetupConfigBuilder
impl AgentSetupConfigBuilder
Sourcepub fn with_parent_did(self, did: impl Into<String>) -> Self
pub fn with_parent_did(self, did: impl Into<String>) -> Self
Sets the parent identity DID that delegates authority to this agent.
Args:
did: The DID of the owning identity.
Usage:
ⓘ
let config = AgentSetupConfig::builder("bot", path)
.with_parent_did("did:keri:abc123")
.build();Sourcepub fn with_capabilities(self, capabilities: Vec<Capability>) -> Self
pub fn with_capabilities(self, capabilities: Vec<Capability>) -> Self
Sets the capabilities granted to the agent.
Args:
capabilities: List of capabilities.
Usage:
ⓘ
let config = AgentSetupConfig::builder("bot", path)
.with_capabilities(vec![Capability::sign_commit()])
.build();Sourcepub fn with_expiry(self, secs: u64) -> Self
pub fn with_expiry(self, secs: u64) -> Self
Sets the agent key expiration time in seconds.
Args:
secs: Seconds until the agent identity expires.
Usage:
ⓘ
let config = AgentSetupConfig::builder("bot", path)
.with_expiry(86400) // 24 hours
.build();Sourcepub fn dry_run(self, enabled: bool) -> Self
pub fn dry_run(self, enabled: bool) -> Self
Enables dry-run mode (constructs state without persisting).
Usage:
ⓘ
let config = AgentSetupConfig::builder("bot", path)
.dry_run(true)
.build();Sourcepub fn build(self) -> AgentSetupConfig
pub fn build(self) -> AgentSetupConfig
Builds the final AgentSetupConfig.
Usage:
ⓘ
let config = AgentSetupConfig::builder("bot", path).build();Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentSetupConfigBuilder
impl RefUnwindSafe for AgentSetupConfigBuilder
impl Send for AgentSetupConfigBuilder
impl Sync for AgentSetupConfigBuilder
impl Unpin for AgentSetupConfigBuilder
impl UnsafeUnpin for AgentSetupConfigBuilder
impl UnwindSafe for AgentSetupConfigBuilder
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