pub enum Decision {
Open {
key: String,
},
Denied {
key: String,
},
NotPermitted {
key: String,
},
NoUsableExtension,
}Expand description
What is to be done with a content file.
Variants§
Open
Permitted. The folded extension is carried so a caller reports the same value the decision was made against.
Denied
On a deny list, which wins over every allow list.
NotPermitted
Not on any allow list. A different answer from Denied, because the
remedy differs and so does the sentence a person should be shown.
NoUsableExtension
No extension, or one nothing can compare. Concept 5.1 refuses this
whatever the lists say, because ShellExecuteEx answers it with the
Open With dialog, which offers every executable on the machine inside a
flow the person reads as open the document.
Trait Implementations§
impl Eq for Decision
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
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.