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,
}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: boolImplementations§
Source§impl AuthEndpointOptions
impl AuthEndpointOptions
pub fn new() -> Self
pub fn operation_id(self, operation_id: impl Into<String>) -> Self
pub fn allowed_media_types<I, S>(self, media_types: I) -> Self
pub fn body_schema(self, schema: BodySchema) -> Self
pub fn middleware(self, middleware: EndpointMiddleware) -> Self
pub fn openapi(self, operation: OpenApiOperation) -> Self
pub fn server_only(self) -> Self
pub fn hide_from_openapi(self) -> Self
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 Freeze for AuthEndpointOptions
impl !RefUnwindSafe for AuthEndpointOptions
impl Send for AuthEndpointOptions
impl Sync for AuthEndpointOptions
impl Unpin for AuthEndpointOptions
impl UnsafeUnpin for AuthEndpointOptions
impl !UnwindSafe 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