pub struct RouteObject {
pub is_route_dynamic: String,
pub method: String,
pub request_body: Value,
pub response: Value,
pub route: String,
}
Expand description
Represents an object describing a route in the API, including its method, whether it is dynamic, request/response body schemas, and the route itself.
§Fields
is_route_dynamic
: Indicates if the route is dynamic (e.g., contains path parameters).method
: The HTTP method associated with the route (e.g., GET, POST).request_body
: A JSON schema for the request body.response
: A JSON schema for the response body.route
: The route string, e.g.,/api/users/{id}
.
Fields§
§is_route_dynamic: String
§method: String
§request_body: Value
§response: Value
§route: String
Trait Implementations§
source§impl Clone for RouteObject
impl Clone for RouteObject
source§fn clone(&self) -> RouteObject
fn clone(&self) -> RouteObject
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RouteObject
impl Debug for RouteObject
source§impl<'de> Deserialize<'de> for RouteObject
impl<'de> Deserialize<'de> for RouteObject
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for RouteObject
impl PartialEq for RouteObject
source§impl Serialize for RouteObject
impl Serialize for RouteObject
impl StructuralPartialEq for RouteObject
Auto Trait Implementations§
impl Freeze for RouteObject
impl RefUnwindSafe for RouteObject
impl Send for RouteObject
impl Sync for RouteObject
impl Unpin for RouteObject
impl UnwindSafe for RouteObject
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)