pub struct AuthEndpointOptions {
pub operation_id: Option<String>,
pub allowed_media_types: Vec<String>,
pub body_schema: Option<BodySchema>,
pub middlewares: Vec<EndpointMiddleware>,
pub openapi: Option<OpenApiOperation>,
pub server_only: bool,
pub hide_from_openapi: bool,
pub bypass_origin_security: bool,
}Fields§
§operation_id: Option<String>§allowed_media_types: Vec<String>§body_schema: Option<BodySchema>§middlewares: Vec<EndpointMiddleware>§openapi: Option<OpenApiOperation>§server_only: bool§hide_from_openapi: bool§bypass_origin_security: boolImplementations§
Source§impl AuthEndpointOptions
impl AuthEndpointOptions
pub fn new() -> AuthEndpointOptions
pub fn operation_id( self, operation_id: impl Into<String>, ) -> AuthEndpointOptions
pub fn allowed_media_types<I, S>(self, media_types: I) -> AuthEndpointOptions
pub fn body_schema(self, schema: BodySchema) -> AuthEndpointOptions
pub fn middleware(self, middleware: EndpointMiddleware) -> AuthEndpointOptions
pub fn openapi(self, operation: OpenApiOperation) -> AuthEndpointOptions
pub fn server_only(self) -> AuthEndpointOptions
pub fn hide_from_openapi(self) -> AuthEndpointOptions
pub fn bypass_origin_security(self) -> AuthEndpointOptions
Trait Implementations§
Source§impl Clone for AuthEndpointOptions
impl Clone for AuthEndpointOptions
Source§fn clone(&self) -> AuthEndpointOptions
fn clone(&self) -> AuthEndpointOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for AuthEndpointOptions
impl Default for AuthEndpointOptions
Source§fn default() -> AuthEndpointOptions
fn default() -> AuthEndpointOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AuthEndpointOptions
impl !UnwindSafe for AuthEndpointOptions
impl Freeze for AuthEndpointOptions
impl Send for AuthEndpointOptions
impl Sync for AuthEndpointOptions
impl Unpin for AuthEndpointOptions
impl UnsafeUnpin for AuthEndpointOptions
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