Trait k8s_openapi::Response

source ·
pub trait Response: Sized {
    // Required method
    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§

source

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.

If an instance of Self can be successfully parsed from the given byte buffer, the instance is returned, along with the number of bytes used up from the buffer. Remove those bytes from the buffer before calling this function again.

If the buffer does not contain enough bytes to be able to parse an instance of Self, the function returns Err(ResponseError::NeedMoreData). Append more bytes into the buffer, then call this function again.

Also see the ResponseBody type.

Implementors§

source§

impl Response for ReadMutatingWebhookConfigurationResponse

source§

impl Response for ReadValidatingWebhookConfigurationResponse

source§

impl Response for ReadValidatingAdmissionPolicyBindingResponse

source§

impl Response for ReadValidatingAdmissionPolicyResponse

source§

impl Response for ReadStorageVersionResponse

source§

impl Response for ReadStorageVersionStatusResponse

source§

impl Response for ReadControllerRevisionResponse

source§

impl Response for ReadDaemonSetResponse

source§

impl Response for ReadDaemonSetStatusResponse

source§

impl Response for ReadDeploymentResponse

source§

impl Response for ReadDeploymentStatusResponse

source§

impl Response for ReadReplicaSetResponse

source§

impl Response for ReadReplicaSetStatusResponse

source§

impl Response for ReadStatefulSetResponse

source§

impl Response for ReadStatefulSetStatusResponse

source§

impl Response for ReadDeploymentScaleResponse

source§

impl Response for k8s_openapi::api::autoscaling::v1::ReadHorizontalPodAutoscalerResponse

source§

impl Response for k8s_openapi::api::autoscaling::v1::ReadHorizontalPodAutoscalerStatusResponse

source§

impl Response for ReadReplicaSetScaleResponse

source§

impl Response for ReadReplicationControllerScaleResponse

source§

impl Response for ReadStatefulSetScaleResponse

source§

impl Response for k8s_openapi::api::autoscaling::v2::ReadHorizontalPodAutoscalerResponse

source§

impl Response for k8s_openapi::api::autoscaling::v2::ReadHorizontalPodAutoscalerStatusResponse

source§

impl Response for ReadCronJobResponse

source§

impl Response for ReadCronJobStatusResponse

source§

impl Response for ReadJobResponse

source§

impl Response for ReadJobStatusResponse

source§

impl Response for ReadCertificateSigningRequestApprovalResponse

source§

impl Response for ReadCertificateSigningRequestResponse

source§

impl Response for ReadCertificateSigningRequestStatusResponse

source§

impl Response for ReadLeaseResponse

source§

impl Response for ReadComponentStatusResponse

source§

impl Response for ReadConfigMapResponse

source§

impl Response for ReadEndpointsResponse

source§

impl Response for k8s_openapi::api::core::v1::ReadEventResponse

source§

impl Response for ReadLimitRangeResponse

source§

impl Response for ReadNamespaceResponse

source§

impl Response for ReadNamespaceStatusResponse

source§

impl Response for ReadNodeResponse

source§

impl Response for ReadNodeStatusResponse

source§

impl Response for ReadPersistentVolumeClaimResponse

source§

impl Response for ReadPersistentVolumeClaimStatusResponse

source§

impl Response for ReadPersistentVolumeResponse

source§

impl Response for ReadPersistentVolumeStatusResponse

source§

impl Response for ReadPodEphemeralcontainersResponse

source§

impl Response for ReadPodLogResponse

source§

impl Response for ReadPodResponse

source§

impl Response for ReadPodStatusResponse

source§

impl Response for ReadPodTemplateResponse

source§

impl Response for ReadReplicationControllerResponse

source§

impl Response for ReadReplicationControllerStatusResponse

source§

impl Response for ReadResourceQuotaResponse

source§

impl Response for ReadResourceQuotaStatusResponse

source§

impl Response for ReadSecretResponse

source§

impl Response for ReadServiceAccountResponse

source§

impl Response for ReadServiceResponse

source§

impl Response for ReadServiceStatusResponse

source§

impl Response for ReadEndpointSliceResponse

source§

impl Response for k8s_openapi::api::events::v1::ReadEventResponse

source§

impl Response for k8s_openapi::api::flowcontrol::v1beta2::ReadFlowSchemaResponse

source§

impl Response for k8s_openapi::api::flowcontrol::v1beta2::ReadFlowSchemaStatusResponse

source§

impl Response for k8s_openapi::api::flowcontrol::v1beta2::ReadPriorityLevelConfigurationResponse

source§

impl Response for k8s_openapi::api::flowcontrol::v1beta2::ReadPriorityLevelConfigurationStatusResponse

source§

impl Response for k8s_openapi::api::flowcontrol::v1beta3::ReadFlowSchemaResponse

source§

impl Response for k8s_openapi::api::flowcontrol::v1beta3::ReadFlowSchemaStatusResponse

source§

impl Response for k8s_openapi::api::flowcontrol::v1beta3::ReadPriorityLevelConfigurationResponse

source§

impl Response for k8s_openapi::api::flowcontrol::v1beta3::ReadPriorityLevelConfigurationStatusResponse

source§

impl Response for ReadIngressClassResponse

source§

impl Response for ReadIngressResponse

source§

impl Response for ReadIngressStatusResponse

source§

impl Response for ReadNetworkPolicyResponse

source§

impl Response for ReadNetworkPolicyStatusResponse

source§

impl Response for ReadClusterCIDRResponse

source§

impl Response for ReadRuntimeClassResponse

source§

impl Response for ReadPodDisruptionBudgetResponse

source§

impl Response for ReadPodDisruptionBudgetStatusResponse

source§

impl Response for ReadClusterRoleBindingResponse

source§

impl Response for ReadClusterRoleResponse

source§

impl Response for ReadRoleBindingResponse

source§

impl Response for ReadRoleResponse

source§

impl Response for ReadPodSchedulingResponse

source§

impl Response for ReadPodSchedulingStatusResponse

source§

impl Response for ReadResourceClaimResponse

source§

impl Response for ReadResourceClaimStatusResponse

source§

impl Response for ReadResourceClaimTemplateResponse

source§

impl Response for ReadResourceClassResponse

source§

impl Response for ReadPriorityClassResponse

source§

impl Response for ReadCSIDriverResponse

source§

impl Response for ReadCSINodeResponse

source§

impl Response for k8s_openapi::api::storage::v1::ReadCSIStorageCapacityResponse

source§

impl Response for ReadStorageClassResponse

source§

impl Response for ReadVolumeAttachmentResponse

source§

impl Response for ReadVolumeAttachmentStatusResponse

source§

impl Response for k8s_openapi::api::storage::v1beta1::ReadCSIStorageCapacityResponse

source§

impl Response for ReadCustomResourceDefinitionResponse

source§

impl Response for ReadCustomResourceDefinitionStatusResponse

source§

impl Response for GetAPIVersionsResponse

source§

impl Response for GetAdmissionregistrationAPIGroupResponse

source§

impl Response for GetAdmissionregistrationV1APIResourcesResponse

source§

impl Response for GetAdmissionregistrationV1alpha1APIResourcesResponse

source§

impl Response for GetApiextensionsAPIGroupResponse

source§

impl Response for GetApiextensionsV1APIResourcesResponse

source§

impl Response for GetApiregistrationAPIGroupResponse

source§

impl Response for GetApiregistrationV1APIResourcesResponse

source§

impl Response for GetAppsAPIGroupResponse

source§

impl Response for GetAppsV1APIResourcesResponse

source§

impl Response for GetAuthenticationAPIGroupResponse

source§

impl Response for GetAuthenticationV1APIResourcesResponse

source§

impl Response for GetAuthenticationV1alpha1APIResourcesResponse

source§

impl Response for GetAuthorizationAPIGroupResponse

source§

impl Response for GetAuthorizationV1APIResourcesResponse

source§

impl Response for GetAutoscalingAPIGroupResponse

source§

impl Response for GetAutoscalingV1APIResourcesResponse

source§

impl Response for GetAutoscalingV2APIResourcesResponse

source§

impl Response for GetBatchAPIGroupResponse

source§

impl Response for GetBatchV1APIResourcesResponse

source§

impl Response for GetCertificatesAPIGroupResponse

source§

impl Response for GetCertificatesV1APIResourcesResponse

source§

impl Response for GetCodeVersionResponse

source§

impl Response for GetCoordinationAPIGroupResponse

source§

impl Response for GetCoordinationV1APIResourcesResponse

source§

impl Response for GetCoreAPIVersionsResponse

source§

impl Response for GetCoreV1APIResourcesResponse

source§

impl Response for GetDiscoveryAPIGroupResponse

source§

impl Response for GetDiscoveryV1APIResourcesResponse

source§

impl Response for GetEventsAPIGroupResponse

source§

impl Response for GetEventsV1APIResourcesResponse

source§

impl Response for GetFlowcontrolApiserverAPIGroupResponse

source§

impl Response for GetFlowcontrolApiserverV1beta2APIResourcesResponse

source§

impl Response for GetFlowcontrolApiserverV1beta3APIResourcesResponse

source§

impl Response for GetInternalApiserverAPIGroupResponse

source§

impl Response for GetInternalApiserverV1alpha1APIResourcesResponse

source§

impl Response for GetNetworkingAPIGroupResponse

source§

impl Response for GetNetworkingV1APIResourcesResponse

source§

impl Response for GetNetworkingV1alpha1APIResourcesResponse

source§

impl Response for GetNodeAPIGroupResponse

source§

impl Response for GetNodeV1APIResourcesResponse

source§

impl Response for GetPolicyAPIGroupResponse

source§

impl Response for GetPolicyV1APIResourcesResponse

source§

impl Response for GetRbacAuthorizationAPIGroupResponse

source§

impl Response for GetRbacAuthorizationV1APIResourcesResponse

source§

impl Response for GetResourceAPIGroupResponse

source§

impl Response for GetResourceV1alpha1APIResourcesResponse

source§

impl Response for GetSchedulingAPIGroupResponse

source§

impl Response for GetSchedulingV1APIResourcesResponse

source§

impl Response for GetServiceAccountIssuerOpenIDConfigurationResponse

source§

impl Response for GetServiceAccountIssuerOpenIDKeysetResponse

source§

impl Response for GetStorageAPIGroupResponse

source§

impl Response for GetStorageV1APIResourcesResponse

source§

impl Response for GetStorageV1beta1APIResourcesResponse

source§

impl Response for LogFileHandlerResponse

source§

impl Response for LogFileListHandlerResponse

source§

impl Response for ReadAPIServiceResponse

source§

impl Response for ReadAPIServiceStatusResponse

source§

impl<T> Response for CreateResponse<T>where T: DeserializeOwned,

source§

impl<T> Response for DeleteResponse<T>where T: DeserializeOwned,

source§

impl<T> Response for ListResponse<T>where T: DeserializeOwned + ListableResource,

source§

impl<T> Response for PatchResponse<T>where T: DeserializeOwned,

source§

impl<T> Response for ReplaceResponse<T>where T: DeserializeOwned,

source§

impl<T> Response for WatchResponse<T>where T: DeserializeOwned,