pub struct TrustOption {
pub label: String,
pub trusted: bool,
pub updates: Vec<(PathBuf, Option<bool>)>,
pub saved_path: Option<PathBuf>,
}Expand description
A choice of the trust prompt and /trust: pi’s ProjectTrustOption.
Fields§
§label: StringWhat the option says.
trusted: boolWhether choosing it trusts the project.
updates: Vec<(PathBuf, Option<bool>)>The decisions it stores, where None clears one.
saved_path: Option<PathBuf>The directory whose stored decision it stands for.
Trait Implementations§
Source§impl Clone for TrustOption
impl Clone for TrustOption
Source§impl Debug for TrustOption
impl Debug for TrustOption
impl Eq for TrustOption
Source§impl PartialEq for TrustOption
impl PartialEq for TrustOption
impl StructuralPartialEq for TrustOption
Auto Trait Implementations§
impl Forget for TrustOption
impl Freeze for TrustOption
impl RefUnwindSafe for TrustOption
impl Send for TrustOption
impl Sync for TrustOption
impl Unpin for TrustOption
impl UnsafeUnpin for TrustOption
impl UnwindSafe for TrustOption
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.