#[non_exhaustive]pub enum RemediationKind {
AdditionalHost,
TrustFlag,
}Expand description
What kind of change would lift this denial.
Deliberately a closed set, and deliberately not collapsed into one “here is a string to paste”: the two kinds do different things to the trusted surface, and a caller has to be able to tell them apart. Adding a host trusts one publisher. Setting a trust flag trusts a curated class of hosts (ADR-0028). An agent choosing between them is making a policy decision on the user’s behalf and should be able to see that.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AdditionalHost
Add a host pattern under [[network.additional_hosts]].
TrustFlag
Set a [network] boolean that trusts a curated host class.
Trait Implementations§
Source§impl Clone for RemediationKind
impl Clone for RemediationKind
Source§fn clone(&self) -> RemediationKind
fn clone(&self) -> RemediationKind
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 RemediationKind
Source§impl Debug for RemediationKind
impl Debug for RemediationKind
impl Eq for RemediationKind
Source§impl PartialEq for RemediationKind
impl PartialEq for RemediationKind
Source§fn eq(&self, other: &RemediationKind) -> bool
fn eq(&self, other: &RemediationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RemediationKind
impl Serialize for RemediationKind
impl StructuralPartialEq for RemediationKind
Auto Trait Implementations§
impl Freeze for RemediationKind
impl RefUnwindSafe for RemediationKind
impl Send for RemediationKind
impl Sync for RemediationKind
impl Unpin for RemediationKind
impl UnsafeUnpin for RemediationKind
impl UnwindSafe for RemediationKind
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