pub struct EndpointCatalog { /* private fields */ }Expand description
Every endpoint declared by a route macro.
Implementations§
Source§impl EndpointCatalog
impl EndpointCatalog
Sourcepub fn from_inventory() -> EndpointCatalog
pub fn from_inventory() -> EndpointCatalog
Build the catalog from the compile-time route table.
Host::build() calls this once; application code receives the result
through DI or Host::endpoints().
Trait Implementations§
Source§impl IEndpointCatalog for EndpointCatalog
impl IEndpointCatalog for EndpointCatalog
Source§fn all(&self) -> &[EndpointDescriptor]
fn all(&self) -> &[EndpointDescriptor]
Source§fn get(&self, method: &str, path: &str) -> Option<&EndpointDescriptor>
fn get(&self, method: &str, path: &str) -> Option<&EndpointDescriptor>
Look up one endpoint by its canonical method and declared route pattern.
Source§fn localized(&self, localizer: &dyn IStringLocalizer) -> Vec<EndpointInfo>
fn localized(&self, localizer: &dyn IStringLocalizer) -> Vec<EndpointInfo>
Resolve every endpoint’s text for the localizer’s default culture. Read more
Source§fn localized_for(
&self,
localizer: &dyn IStringLocalizer,
culture: &str,
) -> Vec<EndpointInfo>
fn localized_for( &self, localizer: &dyn IStringLocalizer, culture: &str, ) -> Vec<EndpointInfo>
Resolve every endpoint’s text for an explicit culture. Read more
Auto Trait Implementations§
impl Forget for EndpointCatalog
impl Freeze for EndpointCatalog
impl Move for EndpointCatalog
impl RefUnwindSafe for EndpointCatalog
impl Send for EndpointCatalog
impl Sync for EndpointCatalog
impl Unpin for EndpointCatalog
impl UnsafeUnpin for EndpointCatalog
impl UnwindSafe for EndpointCatalog
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