Struct controller::traefik::middlewares_crd::MiddlewareDigestAuth
source · pub struct MiddlewareDigestAuth {
pub header_field: Option<String>,
pub realm: Option<String>,
pub remove_header: Option<bool>,
pub secret: Option<String>,
}
Expand description
DigestAuth holds the digest auth middleware configuration. This middleware restricts access to your services to known users. More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/digestauth/
Fields§
§header_field: Option<String>
HeaderField defines a header field to store the authenticated user. More info: https://doc.traefik.io/traefik/v3.0/middlewares/http/basicauth/#headerfield
realm: Option<String>
Realm allows the protected resources on a server to be partitioned into a set of protection spaces, each with its own authentication scheme. Default: traefik.
remove_header: Option<bool>
RemoveHeader defines whether to remove the authorization header before forwarding the request to the backend.
secret: Option<String>
Secret is the name of the referenced Kubernetes Secret containing user credentials.
Trait Implementations§
source§impl Clone for MiddlewareDigestAuth
impl Clone for MiddlewareDigestAuth
source§fn clone(&self) -> MiddlewareDigestAuth
fn clone(&self) -> MiddlewareDigestAuth
Returns a copy 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 MiddlewareDigestAuth
impl Debug for MiddlewareDigestAuth
source§impl Default for MiddlewareDigestAuth
impl Default for MiddlewareDigestAuth
source§fn default() -> MiddlewareDigestAuth
fn default() -> MiddlewareDigestAuth
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MiddlewareDigestAuth
impl<'de> Deserialize<'de> for MiddlewareDigestAuth
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 JsonSchema for MiddlewareDigestAuth
impl JsonSchema for MiddlewareDigestAuth
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MiddlewareDigestAuth
impl Send for MiddlewareDigestAuth
impl Sync for MiddlewareDigestAuth
impl Unpin for MiddlewareDigestAuth
impl UnwindSafe for MiddlewareDigestAuth
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