pub struct RestRoute { /* private fields */ }Expand description
A route to serve and the operation that handles it.
Implementations§
Source§impl RestRoute
impl RestRoute
pub fn id(&self) -> Option<&String>
pub fn id_mut(&mut self) -> &mut Option<String>
pub fn methods(&self) -> &[HttpMethod]
pub fn methods_mut(&mut self) -> &mut Vec<HttpMethod>
pub fn sub_path(&self) -> &str
pub fn sub_path_mut(&mut self) -> &mut String
pub fn operation(&self) -> &ComponentOperationExpression
pub fn operation_mut(&mut self) -> &mut ComponentOperationExpression
pub fn description(&self) -> Option<&String>
pub fn description_mut(&mut self) -> &mut Option<String>
pub fn summary(&self) -> Option<&String>
pub fn summary_mut(&mut self) -> &mut Option<String>
Trait Implementations§
Source§impl AssetManager for RestRoute
impl AssetManager for RestRoute
type Asset = AssetReference
fn set_baseurl(&self, baseurl: &Path)
fn assets(&self) -> Assets<'_, AssetReference>
fn get_asset_flags(&self) -> u32
Source§impl TryFrom<RestRoute> for Route
impl TryFrom<RestRoute> for Route
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
Source§impl TryFrom<Route> for RestRoute
impl TryFrom<Route> for RestRoute
Source§type Error = ManifestError
type Error = ManifestError
The type returned in the event of a conversion error.
impl StructuralPartialEq for RestRoute
Auto Trait Implementations§
impl Freeze for RestRoute
impl !RefUnwindSafe for RestRoute
impl Send for RestRoute
impl Sync for RestRoute
impl Unpin for RestRoute
impl !UnwindSafe for RestRoute
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