pub struct CredentialEntry {
pub sha256: Option<String>,
pub env: Option<String>,
pub principal: String,
pub memories: Option<Vec<String>>,
}Fields§
§sha256: Option<String>Lowercase hex SHA-256 of the bearer token.
env: Option<String>Name of the environment variable holding the bearer token.
principal: StringThe principal this credential authenticates as.
memories: Option<Vec<String>>Per-memory scope (the enterprise plane’s hub rule): when set, this
credential authenticates ONLY on services whose memory label is in
the list — one auth file shared across hub instances, each token
reaching only its memories. None = every memory (the common
single-memory deployment).
Trait Implementations§
Source§impl Debug for CredentialEntry
impl Debug for CredentialEntry
Source§impl<'de> Deserialize<'de> for CredentialEntry
impl<'de> Deserialize<'de> for CredentialEntry
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
Auto Trait Implementations§
impl Freeze for CredentialEntry
impl RefUnwindSafe for CredentialEntry
impl Send for CredentialEntry
impl Sync for CredentialEntry
impl Unpin for CredentialEntry
impl UnsafeUnpin for CredentialEntry
impl UnwindSafe for CredentialEntry
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