pub struct CredentialSpec {
pub label: String,
pub keychain_service: String,
pub keychain_account: String,
pub required: bool,
}Expand description
Where a harness’s secret lives in the OS keychain, and how to label it in the UI. Lets the front-end ask for the right credential per harness without hard-coding any one harness’s slot.
Fields§
§label: StringHuman label, e.g. “Bob API key” / “Anthropic API key”.
keychain_service: String§keychain_account: String§required: boolWhether the harness can run at all without this credential.
Trait Implementations§
Source§impl Clone for CredentialSpec
impl Clone for CredentialSpec
Source§fn clone(&self) -> CredentialSpec
fn clone(&self) -> CredentialSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CredentialSpec
impl Debug for CredentialSpec
Auto Trait Implementations§
impl Freeze for CredentialSpec
impl RefUnwindSafe for CredentialSpec
impl Send for CredentialSpec
impl Sync for CredentialSpec
impl Unpin for CredentialSpec
impl UnsafeUnpin for CredentialSpec
impl UnwindSafe for CredentialSpec
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