Trait k8s_openapi::Response[][src]

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

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