pub struct EndpointDecl {
pub id: &'static str,
pub method: &'static str,
pub path_template: &'static str,
pub shape: ResponseShape,
pub capture_ref: &'static str,
}Expand description
One declared endpoint: its id, wire verb, path and 2xx shape, and the capture block the shape was read from.
Fields§
§id: &'static strStable id, also named by shape errors.
method: &'static strHTTP method.
path_template: &'static strPath with {kind} where the scan kind goes, {module}, {type}
and {name} where a resource route takes them, and {provider}
where the secret-provider listing takes the provider name.
shape: ResponseShapeWhat a 2xx answer must look like.
capture_ref: &'static strThe 20-LIVE-CAPTURES.md block(s) this row rests on.
Trait Implementations§
Source§impl Clone for EndpointDecl
impl Clone for EndpointDecl
impl Copy for EndpointDecl
Source§impl Debug for EndpointDecl
impl Debug for EndpointDecl
impl Eq for EndpointDecl
Source§impl PartialEq for EndpointDecl
impl PartialEq for EndpointDecl
impl StructuralPartialEq for EndpointDecl
Auto Trait Implementations§
impl Freeze for EndpointDecl
impl RefUnwindSafe for EndpointDecl
impl Send for EndpointDecl
impl Sync for EndpointDecl
impl Unpin for EndpointDecl
impl UnsafeUnpin for EndpointDecl
impl UnwindSafe for EndpointDecl
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.