pub struct CreateAgentIdentityConfig {
pub alias: KeyAlias,
pub capabilities: Vec<Capability>,
pub parent_identity_did: Option<String>,
pub registry_path: PathBuf,
pub expires_in: Option<u64>,
pub dry_run: bool,
}Expand description
Configuration for agent identity.
Use CreateAgentIdentityConfigBuilder 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 = CreateAgentIdentityConfig::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: Option<u64>Duration in seconds until expiration (per RFC 6749).
dry_run: boolIf true, construct state without persisting.
Implementations§
Source§impl CreateAgentIdentityConfig
impl CreateAgentIdentityConfig
Sourcepub fn builder(
alias: KeyAlias,
registry_path: impl Into<PathBuf>,
) -> CreateAgentIdentityConfigBuilder
pub fn builder( alias: KeyAlias, registry_path: impl Into<PathBuf>, ) -> CreateAgentIdentityConfigBuilder
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 = CreateAgentIdentityConfig::builder("deploy-bot", path);Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateAgentIdentityConfig
impl RefUnwindSafe for CreateAgentIdentityConfig
impl Send for CreateAgentIdentityConfig
impl Sync for CreateAgentIdentityConfig
impl Unpin for CreateAgentIdentityConfig
impl UnsafeUnpin for CreateAgentIdentityConfig
impl UnwindSafe for CreateAgentIdentityConfig
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