pub struct ApiEndpointNode<'a> {
pub methods: &'a [&'a str],
pub path: &'a str,
pub protocol: Option<&'a str>,
pub framework: Option<&'a str>,
pub project_name: Option<&'a str>,
}Expand description
Structured view of the properties we expect on an ApiEndpoint node.
This shape is intentionally minimal and framework-agnostic so it can be populated from Erlang/Cowboy, Java/Spring, JS/Express, etc.
Fields§
§methods: &'a [&'a str]HTTP methods for this endpoint (e.g. [“GET”], [“GET”,“POST”]).
path: &'a strCanonical path template, e.g. “/omega/api/getavroutes” or “/orders/{id}”.
protocol: Option<&'a str>Protocol such as “http” or “https”.
framework: Option<&'a str>Framework that exposes this endpoint (e.g. “cowboy”, “spring”).
project_name: Option<&'a str>Logical project/service name this endpoint belongs to.
Trait Implementations§
Source§impl<'a> Clone for ApiEndpointNode<'a>
impl<'a> Clone for ApiEndpointNode<'a>
Source§fn clone(&self) -> ApiEndpointNode<'a>
fn clone(&self) -> ApiEndpointNode<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for ApiEndpointNode<'a>
impl<'a> RefUnwindSafe for ApiEndpointNode<'a>
impl<'a> Send for ApiEndpointNode<'a>
impl<'a> Sync for ApiEndpointNode<'a>
impl<'a> Unpin for ApiEndpointNode<'a>
impl<'a> UnsafeUnpin for ApiEndpointNode<'a>
impl<'a> UnwindSafe for ApiEndpointNode<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more