pub struct SecurityEnvConfig {
pub allow: Option<Vec<String>>,
pub deny: Option<Vec<String>>,
pub mode: Option<String>,
}
Fields§
§allow: Option<Vec<String>>
Allow takes effect when Mode is ExecutionPolicyFilter and only allows the specified environment variables to be set.
deny: Option<Vec<String>>
Allow takes effect when Mode is not ExecutionPolicyDisable and disallows the specified environment variables to be set.
mode: Option<String>
Implementations§
Source§impl SecurityEnvConfig
impl SecurityEnvConfig
pub fn new() -> SecurityEnvConfig
Trait Implementations§
Source§impl Clone for SecurityEnvConfig
impl Clone for SecurityEnvConfig
Source§fn clone(&self) -> SecurityEnvConfig
fn clone(&self) -> SecurityEnvConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SecurityEnvConfig
impl Debug for SecurityEnvConfig
Source§impl<'de> Deserialize<'de> for SecurityEnvConfig
impl<'de> Deserialize<'de> for SecurityEnvConfig
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 FromStr for SecurityEnvConfig
Converts Query Parameters representation (style=form, explode=false) to a SecurityEnvConfig value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for SecurityEnvConfig
Converts Query Parameters representation (style=form, explode=false) to a SecurityEnvConfig value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for SecurityEnvConfig
impl PartialEq for SecurityEnvConfig
Source§impl Serialize for SecurityEnvConfig
impl Serialize for SecurityEnvConfig
Source§impl ToString for SecurityEnvConfig
Converts the SecurityEnvConfig value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for SecurityEnvConfig
Converts the SecurityEnvConfig value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for SecurityEnvConfig
impl Validate for SecurityEnvConfig
Source§impl<'v_a> ValidateArgs<'v_a> for SecurityEnvConfig
impl<'v_a> ValidateArgs<'v_a> for SecurityEnvConfig
impl StructuralPartialEq for SecurityEnvConfig
Auto Trait Implementations§
impl Freeze for SecurityEnvConfig
impl RefUnwindSafe for SecurityEnvConfig
impl Send for SecurityEnvConfig
impl Sync for SecurityEnvConfig
impl Unpin for SecurityEnvConfig
impl UnwindSafe for SecurityEnvConfig
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