pub struct CredentialDelivery { /* private fields */ }Implementations§
Source§impl CredentialDelivery
impl CredentialDelivery
pub const fn none() -> Self
Sourcepub fn from_local_descriptor(
provider: impl Into<String>,
auth_mode: impl Into<String>,
env_var: impl Into<String>,
material_ref: impl Into<String>,
scopes: Vec<String>,
secret: impl Into<String>,
) -> Result<Self, CredentialDeliveryError>
pub fn from_local_descriptor( provider: impl Into<String>, auth_mode: impl Into<String>, env_var: impl Into<String>, material_ref: impl Into<String>, scopes: Vec<String>, secret: impl Into<String>, ) -> Result<Self, CredentialDeliveryError>
Build a delivery from a one-shot, per-run local credential descriptor.
This is the OSS local-provision path: no network, no persistence, no
brokerage. It derives a delivery profile, a credential envelope, and an
allowed binding decision purely from the supplied descriptor, resolves
the secret in-memory, and routes it through the same
Self::from_allowed_binding seam so policy checks and redaction stay
centralized. The secret value is held only for the lifetime of this run.
pub fn from_hosted_handles_json( raw: &str, ) -> Result<Self, CredentialDeliveryError>
pub fn from_allowed_binding<R: MaterialResolver>( decision: &CredentialBindingDecision, credential: &CredentialEnvelope, profile: &CredentialDeliveryProfile, resolver: &R, observation: CredentialDeliveryObservation, ) -> Result<Self, CredentialDeliveryError>
pub fn secret_env(&self) -> &SecretEnv
pub fn reject_process_env_boundary( &self, boundary: &'static str, ) -> Result<(), CredentialDeliveryError>
pub fn with_public_observation( self, observation: CredentialDeliveryObservation, ) -> Self
pub fn public_observation(&self) -> Option<&CredentialDeliveryObservation>
pub fn credential_refs(&self) -> Option<Vec<Reference>>
pub fn redact_text(&self, text: impl Into<String>) -> String
pub fn redact_bytes_to_string( &self, bytes: Vec<u8>, limit_bytes: usize, ) -> String
Trait Implementations§
Source§impl Clone for CredentialDelivery
impl Clone for CredentialDelivery
Source§fn clone(&self) -> CredentialDelivery
fn clone(&self) -> CredentialDelivery
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 CredentialDelivery
impl Debug for CredentialDelivery
Source§impl Default for CredentialDelivery
impl Default for CredentialDelivery
Source§fn default() -> CredentialDelivery
fn default() -> CredentialDelivery
Returns the “default value” for a type. Read more
impl Eq for CredentialDelivery
Source§impl PartialEq for CredentialDelivery
impl PartialEq for CredentialDelivery
Source§fn eq(&self, other: &CredentialDelivery) -> bool
fn eq(&self, other: &CredentialDelivery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CredentialDelivery
Auto Trait Implementations§
impl Freeze for CredentialDelivery
impl RefUnwindSafe for CredentialDelivery
impl Send for CredentialDelivery
impl Sync for CredentialDelivery
impl Unpin for CredentialDelivery
impl UnsafeUnpin for CredentialDelivery
impl UnwindSafe for CredentialDelivery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.