pub struct DeveloperSetupConfigBuilder { /* private fields */ }Expand description
Builder for DeveloperSetupConfig.
Implementations§
Source§impl DeveloperSetupConfigBuilder
impl DeveloperSetupConfigBuilder
Sourcepub fn with_platform(self, platform: PlatformVerification) -> Self
pub fn with_platform(self, platform: PlatformVerification) -> Self
Configures platform identity verification for the new identity.
The SDK never opens a browser or runs OAuth flows. The caller must obtain the access token beforehand and pass it here.
Args:
platform: The platform and access token to verify against.
Usage:
let config = DeveloperSetupConfig::builder("my-key")
.with_platform(PlatformVerification::GitHub {
access_token: "ghp_abc123".into(),
})
.build();Sourcepub fn with_git_signing_scope(self, scope: GitSigningScope) -> Self
pub fn with_git_signing_scope(self, scope: GitSigningScope) -> Self
Sets the Git signing scope (local, global, or skip).
Args:
scope: How to configuregit configfor commit signing.
Usage:
let config = DeveloperSetupConfig::builder("my-key")
.with_git_signing_scope(GitSigningScope::Local {
repo_path: PathBuf::from("/path/to/repo"),
})
.build();Sourcepub fn with_registration(self, url: impl Into<String>) -> Self
pub fn with_registration(self, url: impl Into<String>) -> Self
Enables registration on a remote auths registry after identity creation.
Args:
url: The registry URL to register with.
Usage:
let config = DeveloperSetupConfig::builder("my-key")
.with_registration("https://registry.auths.dev")
.build();Sourcepub fn with_conflict_policy(self, policy: IdentityConflictPolicy) -> Self
pub fn with_conflict_policy(self, policy: IdentityConflictPolicy) -> Self
Sets the policy for handling an existing identity at the registry path.
Args:
policy: What to do if an identity already exists.
Usage:
let config = DeveloperSetupConfig::builder("my-key")
.with_conflict_policy(IdentityConflictPolicy::ReuseExisting)
.build();Sourcepub fn with_witness_config(self, config: WitnessConfig) -> Self
pub fn with_witness_config(self, config: WitnessConfig) -> Self
Sets the witness configuration for the KERI inception event.
Args:
config: Witness endpoints and thresholds.
Usage:
let config = DeveloperSetupConfig::builder("my-key")
.with_witness_config(witness_cfg)
.build();Sourcepub fn with_metadata(self, metadata: Value) -> Self
pub fn with_metadata(self, metadata: Value) -> Self
Attaches custom metadata to the identity (e.g. created_at, setup_profile).
Args:
metadata: Arbitrary JSON metadata.
Usage:
let config = DeveloperSetupConfig::builder("my-key")
.with_metadata(serde_json::json!({"team": "platform"}))
.build();Sourcepub fn with_sign_binary_path(self, path: PathBuf) -> Self
pub fn with_sign_binary_path(self, path: PathBuf) -> Self
Sets the path to the auths-sign binary used for git signing configuration.
Required when git_signing_scope is not Skip. The CLI resolves this via
which::which("auths-sign").
Args:
path: Absolute path to theauths-signbinary.
Usage:
let config = DeveloperSetupConfig::builder("my-key")
.with_sign_binary_path(PathBuf::from("/usr/local/bin/auths-sign"))
.build();Sourcepub fn build(self) -> DeveloperSetupConfig
pub fn build(self) -> DeveloperSetupConfig
Builds the final DeveloperSetupConfig.
Usage:
let config = DeveloperSetupConfig::builder("my-key").build();