Enum k8s_openapi::v1_9::api::networking::v1::ReadNetworkingV1NamespacedNetworkPolicyResponse
source · pub enum ReadNetworkingV1NamespacedNetworkPolicyResponse {
Ok(NetworkPolicy),
Unauthorized,
Other,
}
Expand description
Parses the HTTP response of NetworkPolicy::read_networking_v1_namespaced_network_policy
Variants§
Ok(NetworkPolicy)
Other
Trait Implementations§
source§impl Response for ReadNetworkingV1NamespacedNetworkPolicyResponse
impl Response for ReadNetworkingV1NamespacedNetworkPolicyResponse
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.