Trait k8s_openapi::Response

source ·
pub trait Response: Sized {
    fn try_from_parts(
        status_code: StatusCode,
        buf: &[u8]
    ) -> Result<(Self, usize), ResponseError>; }
Expand description

A trait implemented by all response types corresponding to Kubernetes API functions.

Required Methods§

Tries to parse the response from the given status code and response body.

Implementors§