pub struct CustomEndpoint {
pub method: String,
pub path: String,
pub response: Value,
pub status_code: u16,
}Expand description
Custom endpoint configuration.
Fields§
§method: StringThe HTTP method (GET, POST, PUT, DELETE, PATCH).
path: StringThe endpoint path.
response: ValueThe response body as JSON.
status_code: u16Optional status code (defaults to 200).
Trait Implementations§
Source§impl Clone for CustomEndpoint
impl Clone for CustomEndpoint
Source§fn clone(&self) -> CustomEndpoint
fn clone(&self) -> CustomEndpoint
Returns a duplicate 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 CustomEndpoint
impl Debug for CustomEndpoint
Source§impl<'de> Deserialize<'de> for CustomEndpoint
impl<'de> Deserialize<'de> for CustomEndpoint
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
Auto Trait Implementations§
impl Freeze for CustomEndpoint
impl RefUnwindSafe for CustomEndpoint
impl Send for CustomEndpoint
impl Sync for CustomEndpoint
impl Unpin for CustomEndpoint
impl UnwindSafe for CustomEndpoint
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