pub enum TrustLevel {
Untrusted,
Low,
Medium,
High,
Full,
}Expand description
Represents the level of trust assigned to an environment.
§Examples
use this_env::env::TrustLevel;
let trust = TrustLevel::High;Variants§
Trait Implementations§
Source§impl Clone for TrustLevel
impl Clone for TrustLevel
Source§fn clone(&self) -> TrustLevel
fn clone(&self) -> TrustLevel
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustLevel
impl Debug for TrustLevel
Source§impl<'de> Deserialize<'de> for TrustLevel
impl<'de> Deserialize<'de> for TrustLevel
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
Source§impl FromSql for TrustLevel
impl FromSql for TrustLevel
Source§fn column_result(value: ValueRef<'_>) -> Result<Self, FromSqlError>
fn column_result(value: ValueRef<'_>) -> Result<Self, FromSqlError>
Converts SQLite value into Rust value.
Source§impl Serialize for TrustLevel
impl Serialize for TrustLevel
Source§impl ToSql for TrustLevel
impl ToSql for TrustLevel
Source§fn to_sql(&self) -> SqlResult<ToSqlOutput<'_>>
fn to_sql(&self) -> SqlResult<ToSqlOutput<'_>>
Converts Rust value to SQLite value
Auto Trait Implementations§
impl Freeze for TrustLevel
impl RefUnwindSafe for TrustLevel
impl Send for TrustLevel
impl Sync for TrustLevel
impl Unpin for TrustLevel
impl UnwindSafe for TrustLevel
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