pub struct PlainTextEndpoint {
pub path: String,
pub example: Option<String>,
}Expand description
An endpoint that returns plain text instead of JSON.
Fields§
§path: StringHTTP path (e.g., /health/live).
example: Option<String>Optional example response body (e.g., "OK").
Trait Implementations§
Source§impl Clone for PlainTextEndpoint
impl Clone for PlainTextEndpoint
Source§fn clone(&self) -> PlainTextEndpoint
fn clone(&self) -> PlainTextEndpoint
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 PlainTextEndpoint
impl Debug for PlainTextEndpoint
Source§impl<'de> Deserialize<'de> for PlainTextEndpoint
impl<'de> Deserialize<'de> for PlainTextEndpoint
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 PlainTextEndpoint
impl RefUnwindSafe for PlainTextEndpoint
impl Send for PlainTextEndpoint
impl Sync for PlainTextEndpoint
impl Unpin for PlainTextEndpoint
impl UnwindSafe for PlainTextEndpoint
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