Struct pleaser::EnvOptions

source ·
pub struct EnvOptions {
Show 32 fields pub name: Option<String>, pub exact_name: Option<String>, pub rule: Option<String>, pub exact_rule: Option<String>, pub notbefore: Option<NaiveDateTime>, pub notafter: Option<NaiveDateTime>, pub datematch: Option<String>, pub target: Option<String>, pub exact_target: Option<String>, pub target_group: Option<String>, pub exact_target_group: Option<String>, pub hostname: Option<String>, pub exact_hostname: Option<String>, pub permit: Option<bool>, pub require_pass: Option<bool>, pub acl_type: Acltype, pub file_name: String, pub section: String, pub group: bool, pub configured: bool, pub dir: Option<String>, pub exact_dir: Option<String>, pub exitcmd: Option<String>, pub edit_mode: Option<EditMode>, pub reason: Option<ReasonType>, pub last: Option<bool>, pub syslog: Option<bool>, pub env_permit: Option<String>, pub env_assign: Option<HashMap<String, String>>, pub timeout: Option<u32>, pub search_path: Option<String>, pub token_timeout: Option<u64>,
}

Fields§

§name: Option<String>§exact_name: Option<String>§rule: Option<String>§exact_rule: Option<String>§notbefore: Option<NaiveDateTime>§notafter: Option<NaiveDateTime>§datematch: Option<String>§target: Option<String>§exact_target: Option<String>§target_group: Option<String>§exact_target_group: Option<String>§hostname: Option<String>§exact_hostname: Option<String>§permit: Option<bool>§require_pass: Option<bool>§acl_type: Acltype§file_name: String§section: String§group: bool§configured: bool§dir: Option<String>§exact_dir: Option<String>§exitcmd: Option<String>§edit_mode: Option<EditMode>§reason: Option<ReasonType>§last: Option<bool>§syslog: Option<bool>§env_permit: Option<String>§env_assign: Option<HashMap<String, String>>§timeout: Option<u32>§search_path: Option<String>§token_timeout: Option<u64>

Implementations§

source§

impl EnvOptions

source

pub fn new() -> EnvOptions

source

pub fn permit(&self) -> bool

source

pub fn require_pass(&self) -> bool

Trait Implementations§

source§

impl Clone for EnvOptions

source§

fn clone(&self) -> EnvOptions

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EnvOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for EnvOptions

source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V