pub struct OpenApiRegistry { /* private fields */ }Expand description
Immutable snapshot of the routes and model projections registered on one auth instance.
Implementations§
Source§impl OpenApiRegistry
impl OpenApiRegistry
Sourcepub fn is_server_only(&self, plugin: &str, route: &AuthRoute) -> bool
pub fn is_server_only(&self, plugin: &str, route: &AuthRoute) -> bool
Whether an installed endpoint is available only through server calls. This is independent of document hiding and disabled-path configuration.
Sourcepub fn registered_routes(&self) -> Vec<AuthRoute>
pub fn registered_routes(&self) -> Vec<AuthRoute>
Actual registered routes, including endpoints unavailable over HTTP or omitted from documentation.
Sourcepub fn configured(models: Vec<OpenApiModel>, config: &AuthConfig) -> Self
pub fn configured(models: Vec<OpenApiModel>, config: &AuthConfig) -> Self
Apply application table policies before plugin collection. Documentation and adapter tables use config-over-plugin precedence; input/output parsing has its own source-distinct immutable field registry.
pub fn new(models: Vec<OpenApiModel>) -> Self
pub fn register( &mut self, plugin: &str, routes: Vec<AuthRoute>, metadata: PluginOpenApiMetadata, )
Sourcepub fn register_fields(&mut self, model_name: &str, fields: &FieldConfigs)
pub fn register_fields(&mut self, model_name: &str, fields: &FieldConfigs)
Register the actual plugin field policies alongside its route annotations. Configured model overlays remain distinct from plugin-wins user input.
Trait Implementations§
Source§impl Clone for OpenApiRegistry
impl Clone for OpenApiRegistry
Source§impl Debug for OpenApiRegistry
impl Debug for OpenApiRegistry
Auto Trait Implementations§
impl Freeze for OpenApiRegistry
impl RefUnwindSafe for OpenApiRegistry
impl Send for OpenApiRegistry
impl Sync for OpenApiRegistry
impl Unpin for OpenApiRegistry
impl UnsafeUnpin for OpenApiRegistry
impl UnwindSafe for OpenApiRegistry
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