pub enum ReadNamespacedRouteResponse {
Ok(Route),
Other(Result<Option<Value>, Error>),
}
Expand description
Use <ReadNamespacedRouteResponse as Response>::try_from_parts
to parse the HTTP response body of Route::read_namespaced_route
Variants§
Trait Implementations§
Source§impl Debug for ReadNamespacedRouteResponse
impl Debug for ReadNamespacedRouteResponse
Source§impl Response for ReadNamespacedRouteResponse
impl Response for ReadNamespacedRouteResponse
Source§fn try_from_parts(
status_code: StatusCode,
buf: &[u8],
) -> Result<(Self, usize), ResponseError>
fn try_from_parts( status_code: StatusCode, buf: &[u8], ) -> Result<(Self, usize), ResponseError>
Tries to parse the response from the given status code and response body. Read more
Auto Trait Implementations§
impl Freeze for ReadNamespacedRouteResponse
impl !RefUnwindSafe for ReadNamespacedRouteResponse
impl Send for ReadNamespacedRouteResponse
impl Sync for ReadNamespacedRouteResponse
impl Unpin for ReadNamespacedRouteResponse
impl !UnwindSafe for ReadNamespacedRouteResponse
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