#[non_exhaustive]pub struct ProviderDecision {
pub operation: ProviderOperation,
pub algorithm: Algorithm,
pub provider_kind: ProviderKind,
pub lane: ProviderLane,
pub disposition: ProviderDisposition,
pub reason: ProviderPolicyReason,
pub key_residency: KeyResidency,
pub key_copy_boundary: KeyCopyBoundary,
pub output_policy: ProviderOutputPolicy,
pub fallback: FallbackPolicy,
}Expand description
Complete, non-secret provider decision produced before dispatch executes.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.operation: ProviderOperationRequested operation.
algorithm: AlgorithmRequested algorithm.
provider_kind: ProviderKindProvider implementation class considered by policy.
lane: ProviderLaneRuntime lane considered by policy.
disposition: ProviderDispositionWhether the provider was selected or rejected.
reason: ProviderPolicyReasonFixed reason for the selection or rejection.
key_residency: KeyResidencySecret-key residency for the route.
key_copy_boundary: KeyCopyBoundarySecret-input copy behavior for the route.
output_policy: ProviderOutputPolicyOutput sensitivity and cleanup contract.
fallback: FallbackPolicyExplicit fallback disposition.
Implementations§
Source§impl ProviderDecision
impl ProviderDecision
Sourcepub fn is_selected(self) -> bool
pub fn is_selected(self) -> bool
Returns true only when the reviewed provider was selected.
Trait Implementations§
Source§impl Clone for ProviderDecision
impl Clone for ProviderDecision
Source§fn clone(&self) -> ProviderDecision
fn clone(&self) -> ProviderDecision
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 moreimpl Copy for ProviderDecision
Source§impl Debug for ProviderDecision
impl Debug for ProviderDecision
impl Eq for ProviderDecision
Source§impl PartialEq for ProviderDecision
impl PartialEq for ProviderDecision
impl StructuralPartialEq for ProviderDecision
Auto Trait Implementations§
impl Freeze for ProviderDecision
impl RefUnwindSafe for ProviderDecision
impl Send for ProviderDecision
impl Sync for ProviderDecision
impl Unpin for ProviderDecision
impl UnsafeUnpin for ProviderDecision
impl UnwindSafe for ProviderDecision
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