pub struct ProviderProfile {
pub id: String,
pub provider: String,
pub model: String,
pub roles: Vec<ProfileRole>,
pub credential: SecretLocator,
pub capabilities: DeclaredCapabilities,
}Expand description
A single Foundation profile (§2.1, §2.2). Parsed strictly: extra fields that look like secrets cause the whole file to be rejected (§2.5).
Fields§
§id: String§provider: String§model: String§roles: Vec<ProfileRole>§credential: SecretLocator§capabilities: DeclaredCapabilitiesOptional declared capabilities. When present, the host uses them to decide whether the profile can satisfy the configured extraction mechanism before contacting the Keychain. When absent, the profile is treated as capable of every mechanism (preserves the v0 behaviour for profiles that haven’t been upgraded yet).
Trait Implementations§
Source§impl Clone for ProviderProfile
impl Clone for ProviderProfile
Source§fn clone(&self) -> ProviderProfile
fn clone(&self) -> ProviderProfile
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 ProviderProfile
impl Debug for ProviderProfile
Source§impl<'de> Deserialize<'de> for ProviderProfile
impl<'de> Deserialize<'de> for ProviderProfile
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProviderProfile
Source§impl PartialEq for ProviderProfile
impl PartialEq for ProviderProfile
Source§impl Serialize for ProviderProfile
impl Serialize for ProviderProfile
impl StructuralPartialEq for ProviderProfile
Auto Trait Implementations§
impl Freeze for ProviderProfile
impl RefUnwindSafe for ProviderProfile
impl Send for ProviderProfile
impl Sync for ProviderProfile
impl Unpin for ProviderProfile
impl UnsafeUnpin for ProviderProfile
impl UnwindSafe for ProviderProfile
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.