pub struct AgentSetupConfig {
pub alias: KeyAlias,
pub capabilities: Vec<Capability>,
pub parent_identity_did: Option<String>,
pub registry_path: PathBuf,
pub expires_in_secs: Option<u64>,
pub dry_run: bool,
}Expand description
Configuration for agent identity.
Use AgentSetupConfigBuilder to construct this with optional fields.
Args:
alias: Human-readable name for the agent.parent_identity_did: The DID of the identity that owns this agent.registry_path: Path to the auths registry.
Usage:
ⓘ
let config = AgentSetupConfig::builder("deploy-bot", "did:keri:abc123", path)
.with_capabilities(vec!["sign-commit".into()])
.build();Fields§
§alias: KeyAliasHuman-readable name for the agent.
capabilities: Vec<Capability>Capabilities granted to the agent.
parent_identity_did: Option<String>DID of the parent identity that delegates authority.
registry_path: PathBufPath to the auths registry directory.
expires_in_secs: Option<u64>Optional agent key expiration time in seconds.
dry_run: boolIf true, construct state without persisting.
Implementations§
Source§impl AgentSetupConfig
impl AgentSetupConfig
Sourcepub fn builder(
alias: KeyAlias,
registry_path: impl Into<PathBuf>,
) -> AgentSetupConfigBuilder
pub fn builder( alias: KeyAlias, registry_path: impl Into<PathBuf>, ) -> AgentSetupConfigBuilder
Creates a builder with alias and registry path.
Args:
alias: Human-readable name for the agent.registry_path: Path to the auths registry directory.
Usage:
ⓘ
let builder = AgentSetupConfig::builder("deploy-bot", path);Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentSetupConfig
impl RefUnwindSafe for AgentSetupConfig
impl Send for AgentSetupConfig
impl Sync for AgentSetupConfig
impl Unpin for AgentSetupConfig
impl UnsafeUnpin for AgentSetupConfig
impl UnwindSafe for AgentSetupConfig
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