pub struct EndpointDiscovery { /* private fields */ }Expand description
Endpoint discovery service
Implementations§
Source§impl EndpointDiscovery
impl EndpointDiscovery
Sourcepub fn new() -> OpenApiResult<Self>
pub fn new() -> OpenApiResult<Self>
Create new endpoint discovery service
Sourcepub fn discover_endpoints(
&self,
controllers: &[ControllerInfo],
) -> OpenApiResult<Vec<RouteMetadata>>
pub fn discover_endpoints( &self, controllers: &[ControllerInfo], ) -> OpenApiResult<Vec<RouteMetadata>>
Discover endpoints from controller metadata
Sourcepub fn extract_from_source(
&self,
source_code: &str,
) -> OpenApiResult<Vec<EndpointMetadata>>
pub fn extract_from_source( &self, source_code: &str, ) -> OpenApiResult<Vec<EndpointMetadata>>
Extract endpoint metadata from source code (simplified implementation)
Auto Trait Implementations§
impl Freeze for EndpointDiscovery
impl RefUnwindSafe for EndpointDiscovery
impl Send for EndpointDiscovery
impl Sync for EndpointDiscovery
impl Unpin for EndpointDiscovery
impl UnwindSafe for EndpointDiscovery
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