pub struct Decision {
pub target: String,
pub kind: Kind,
pub how: How,
pub confirm: bool,
pub why: Option<String>,
pub refused: Option<Reason>,
pub reveal_instead: bool,
pub host: Option<String>,
pub host_ascii: Option<String>,
pub disguised: bool,
}Expand description
What the policy decided.
Fields§
§target: StringThe target as parsed (canonical), or as given when it does not parse.
kind: Kind§how: HowHow it opens: never Auto.
confirm: boolThe user confirms first.
why: Option<String>Why it is confirmed (agent, local file, untrusted host,
disguised).
refused: Option<Reason>Why it is refused.
reveal_instead: boolRefused, but showing it in its folder is offered instead.
host: Option<String>The host, as shown (Unicode, punycode beside it).
host_ascii: Option<String>The host as the address carries it.
disguised: boolThe text it was shown under looks like another address.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Decision
impl<'de> Deserialize<'de> for Decision
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 StructuralPartialEq for Decision
Auto Trait Implementations§
impl Freeze for Decision
impl RefUnwindSafe for Decision
impl Send for Decision
impl Sync for Decision
impl Unpin for Decision
impl UnsafeUnpin for Decision
impl UnwindSafe for Decision
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