[][src]Trait k8s_openapi::Response

pub trait Response: Sized {
    pub 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

pub fn try_from_parts(
    status_code: StatusCode,
    buf: &[u8]
) -> Result<(Self, usize), ResponseError>
[src]

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.

Loading content...

Implementors

impl Response for k8s_openapi::api::admissionregistration::v1::ReadMutatingWebhookConfigurationResponse[src]

impl Response for k8s_openapi::api::admissionregistration::v1::ReadValidatingWebhookConfigurationResponse[src]

impl Response for k8s_openapi::api::admissionregistration::v1beta1::ReadMutatingWebhookConfigurationResponse[src]

impl Response for k8s_openapi::api::admissionregistration::v1beta1::ReadValidatingWebhookConfigurationResponse[src]

impl Response for ReadStorageVersionResponse[src]

impl Response for ReadStorageVersionStatusResponse[src]

impl Response for ReadNamespacedControllerRevisionResponse[src]

impl Response for ReadNamespacedDaemonSetResponse[src]

impl Response for ReadNamespacedDaemonSetStatusResponse[src]

impl Response for ReadNamespacedDeploymentResponse[src]

impl Response for ReadNamespacedDeploymentStatusResponse[src]

impl Response for ReadNamespacedReplicaSetResponse[src]

impl Response for ReadNamespacedReplicaSetStatusResponse[src]

impl Response for ReadNamespacedStatefulSetResponse[src]

impl Response for ReadNamespacedStatefulSetStatusResponse[src]

impl Response for ReadNamespacedDeploymentScaleResponse[src]

impl Response for k8s_openapi::api::autoscaling::v1::ReadNamespacedHorizontalPodAutoscalerResponse[src]

impl Response for k8s_openapi::api::autoscaling::v1::ReadNamespacedHorizontalPodAutoscalerStatusResponse[src]

impl Response for ReadNamespacedReplicaSetScaleResponse[src]

impl Response for ReadNamespacedReplicationControllerScaleResponse[src]

impl Response for ReadNamespacedStatefulSetScaleResponse[src]

impl Response for k8s_openapi::api::autoscaling::v2beta1::ReadNamespacedHorizontalPodAutoscalerResponse[src]

impl Response for k8s_openapi::api::autoscaling::v2beta1::ReadNamespacedHorizontalPodAutoscalerStatusResponse[src]

impl Response for k8s_openapi::api::autoscaling::v2beta2::ReadNamespacedHorizontalPodAutoscalerResponse[src]

impl Response for k8s_openapi::api::autoscaling::v2beta2::ReadNamespacedHorizontalPodAutoscalerStatusResponse[src]

impl Response for ReadNamespacedJobResponse[src]

impl Response for ReadNamespacedJobStatusResponse[src]

impl Response for k8s_openapi::api::batch::v1beta1::ReadNamespacedCronJobResponse[src]

impl Response for k8s_openapi::api::batch::v1beta1::ReadNamespacedCronJobStatusResponse[src]

impl Response for k8s_openapi::api::batch::v2alpha1::ReadNamespacedCronJobResponse[src]

impl Response for k8s_openapi::api::batch::v2alpha1::ReadNamespacedCronJobStatusResponse[src]

impl Response for k8s_openapi::api::certificates::v1::ReadCertificateSigningRequestApprovalResponse[src]

impl Response for k8s_openapi::api::certificates::v1::ReadCertificateSigningRequestResponse[src]

impl Response for k8s_openapi::api::certificates::v1::ReadCertificateSigningRequestStatusResponse[src]

impl Response for k8s_openapi::api::certificates::v1beta1::ReadCertificateSigningRequestApprovalResponse[src]

impl Response for k8s_openapi::api::certificates::v1beta1::ReadCertificateSigningRequestResponse[src]

impl Response for k8s_openapi::api::certificates::v1beta1::ReadCertificateSigningRequestStatusResponse[src]

impl Response for k8s_openapi::api::coordination::v1::ReadNamespacedLeaseResponse[src]

impl Response for k8s_openapi::api::coordination::v1beta1::ReadNamespacedLeaseResponse[src]

impl Response for ReadComponentStatusResponse[src]

impl Response for ReadNamespaceResponse[src]

impl Response for ReadNamespaceStatusResponse[src]

impl Response for ReadNamespacedConfigMapResponse[src]

impl Response for ReadNamespacedEndpointsResponse[src]

impl Response for k8s_openapi::api::core::v1::ReadNamespacedEventResponse[src]

impl Response for ReadNamespacedLimitRangeResponse[src]

impl Response for ReadNamespacedPersistentVolumeClaimResponse[src]

impl Response for ReadNamespacedPersistentVolumeClaimStatusResponse[src]

impl Response for ReadNamespacedPodLogResponse[src]

impl Response for ReadNamespacedPodResponse[src]

impl Response for ReadNamespacedPodStatusResponse[src]

impl Response for ReadNamespacedPodTemplateResponse[src]

impl Response for ReadNamespacedReplicationControllerResponse[src]

impl Response for ReadNamespacedReplicationControllerStatusResponse[src]

impl Response for ReadNamespacedResourceQuotaResponse[src]

impl Response for ReadNamespacedResourceQuotaStatusResponse[src]

impl Response for ReadNamespacedSecretResponse[src]

impl Response for ReadNamespacedServiceAccountResponse[src]

impl Response for ReadNamespacedServiceResponse[src]

impl Response for ReadNamespacedServiceStatusResponse[src]

impl Response for ReadNodeResponse[src]

impl Response for ReadNodeStatusResponse[src]

impl Response for ReadPersistentVolumeResponse[src]

impl Response for ReadPersistentVolumeStatusResponse[src]

impl Response for ReadNamespacedEndpointSliceResponse[src]

impl Response for k8s_openapi::api::events::v1::ReadNamespacedEventResponse[src]

impl Response for k8s_openapi::api::events::v1beta1::ReadNamespacedEventResponse[src]

impl Response for k8s_openapi::api::extensions::v1beta1::ReadNamespacedIngressResponse[src]

impl Response for k8s_openapi::api::extensions::v1beta1::ReadNamespacedIngressStatusResponse[src]

impl Response for k8s_openapi::api::flowcontrol::v1alpha1::ReadFlowSchemaResponse[src]

impl Response for k8s_openapi::api::flowcontrol::v1alpha1::ReadFlowSchemaStatusResponse[src]

impl Response for k8s_openapi::api::flowcontrol::v1alpha1::ReadPriorityLevelConfigurationResponse[src]

impl Response for k8s_openapi::api::flowcontrol::v1alpha1::ReadPriorityLevelConfigurationStatusResponse[src]

impl Response for k8s_openapi::api::flowcontrol::v1beta1::ReadFlowSchemaResponse[src]

impl Response for k8s_openapi::api::flowcontrol::v1beta1::ReadFlowSchemaStatusResponse[src]

impl Response for k8s_openapi::api::flowcontrol::v1beta1::ReadPriorityLevelConfigurationResponse[src]

impl Response for k8s_openapi::api::flowcontrol::v1beta1::ReadPriorityLevelConfigurationStatusResponse[src]

impl Response for k8s_openapi::api::networking::v1::ReadIngressClassResponse[src]

impl Response for k8s_openapi::api::networking::v1::ReadNamespacedIngressResponse[src]

impl Response for k8s_openapi::api::networking::v1::ReadNamespacedIngressStatusResponse[src]

impl Response for ReadNamespacedNetworkPolicyResponse[src]

impl Response for k8s_openapi::api::networking::v1beta1::ReadIngressClassResponse[src]

impl Response for k8s_openapi::api::networking::v1beta1::ReadNamespacedIngressResponse[src]

impl Response for k8s_openapi::api::networking::v1beta1::ReadNamespacedIngressStatusResponse[src]

impl Response for k8s_openapi::api::node::v1::ReadRuntimeClassResponse[src]

impl Response for k8s_openapi::api::node::v1alpha1::ReadRuntimeClassResponse[src]

impl Response for k8s_openapi::api::node::v1beta1::ReadRuntimeClassResponse[src]

impl Response for ReadNamespacedPodDisruptionBudgetResponse[src]

impl Response for ReadNamespacedPodDisruptionBudgetStatusResponse[src]

impl Response for ReadPodSecurityPolicyResponse[src]

impl Response for k8s_openapi::api::rbac::v1::ReadClusterRoleBindingResponse[src]

impl Response for k8s_openapi::api::rbac::v1::ReadClusterRoleResponse[src]

impl Response for k8s_openapi::api::rbac::v1::ReadNamespacedRoleBindingResponse[src]

impl Response for k8s_openapi::api::rbac::v1::ReadNamespacedRoleResponse[src]

impl Response for k8s_openapi::api::rbac::v1alpha1::ReadClusterRoleBindingResponse[src]

impl Response for k8s_openapi::api::rbac::v1alpha1::ReadClusterRoleResponse[src]

impl Response for k8s_openapi::api::rbac::v1alpha1::ReadNamespacedRoleBindingResponse[src]

impl Response for k8s_openapi::api::rbac::v1alpha1::ReadNamespacedRoleResponse[src]

impl Response for k8s_openapi::api::rbac::v1beta1::ReadClusterRoleBindingResponse[src]

impl Response for k8s_openapi::api::rbac::v1beta1::ReadClusterRoleResponse[src]

impl Response for k8s_openapi::api::rbac::v1beta1::ReadNamespacedRoleBindingResponse[src]

impl Response for k8s_openapi::api::rbac::v1beta1::ReadNamespacedRoleResponse[src]

impl Response for k8s_openapi::api::scheduling::v1::ReadPriorityClassResponse[src]

impl Response for k8s_openapi::api::scheduling::v1alpha1::ReadPriorityClassResponse[src]

impl Response for k8s_openapi::api::scheduling::v1beta1::ReadPriorityClassResponse[src]

impl Response for k8s_openapi::api::storage::v1::ReadCSIDriverResponse[src]

impl Response for k8s_openapi::api::storage::v1::ReadCSINodeResponse[src]

impl Response for k8s_openapi::api::storage::v1::ReadStorageClassResponse[src]

impl Response for k8s_openapi::api::storage::v1::ReadVolumeAttachmentResponse[src]

impl Response for ReadVolumeAttachmentStatusResponse[src]

impl Response for k8s_openapi::api::storage::v1alpha1::ReadVolumeAttachmentResponse[src]

impl Response for k8s_openapi::api::storage::v1beta1::ReadCSIDriverResponse[src]

impl Response for k8s_openapi::api::storage::v1beta1::ReadCSINodeResponse[src]

impl Response for k8s_openapi::api::storage::v1beta1::ReadStorageClassResponse[src]

impl Response for k8s_openapi::api::storage::v1beta1::ReadVolumeAttachmentResponse[src]

impl Response for k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::ReadCustomResourceDefinitionResponse[src]

impl Response for k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::ReadCustomResourceDefinitionStatusResponse[src]

impl Response for k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1beta1::ReadCustomResourceDefinitionResponse[src]

impl Response for k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1beta1::ReadCustomResourceDefinitionStatusResponse[src]

impl Response for GetAPIVersionsResponse[src]

impl Response for GetAdmissionregistrationAPIGroupResponse[src]

impl Response for GetAdmissionregistrationV1APIResourcesResponse[src]

impl Response for GetAdmissionregistrationV1beta1APIResourcesResponse[src]

impl Response for GetApiextensionsAPIGroupResponse[src]

impl Response for GetApiextensionsV1APIResourcesResponse[src]

impl Response for GetApiextensionsV1beta1APIResourcesResponse[src]

impl Response for GetApiregistrationAPIGroupResponse[src]

impl Response for GetApiregistrationV1APIResourcesResponse[src]

impl Response for GetApiregistrationV1beta1APIResourcesResponse[src]

impl Response for GetAppsAPIGroupResponse[src]

impl Response for GetAppsV1APIResourcesResponse[src]

impl Response for GetAuthenticationAPIGroupResponse[src]

impl Response for GetAuthenticationV1APIResourcesResponse[src]

impl Response for GetAuthenticationV1beta1APIResourcesResponse[src]

impl Response for GetAuthorizationAPIGroupResponse[src]

impl Response for GetAuthorizationV1APIResourcesResponse[src]

impl Response for GetAuthorizationV1beta1APIResourcesResponse[src]

impl Response for GetAutoscalingAPIGroupResponse[src]

impl Response for GetAutoscalingV1APIResourcesResponse[src]

impl Response for GetAutoscalingV2beta1APIResourcesResponse[src]

impl Response for GetAutoscalingV2beta2APIResourcesResponse[src]

impl Response for GetBatchAPIGroupResponse[src]

impl Response for GetBatchV1APIResourcesResponse[src]

impl Response for GetBatchV1beta1APIResourcesResponse[src]

impl Response for GetBatchV2alpha1APIResourcesResponse[src]

impl Response for GetCertificatesAPIGroupResponse[src]

impl Response for GetCertificatesV1APIResourcesResponse[src]

impl Response for GetCertificatesV1beta1APIResourcesResponse[src]

impl Response for GetCodeVersionResponse[src]

impl Response for GetCoordinationAPIGroupResponse[src]

impl Response for GetCoordinationV1APIResourcesResponse[src]

impl Response for GetCoordinationV1beta1APIResourcesResponse[src]

impl Response for GetCoreAPIVersionsResponse[src]

impl Response for GetCoreV1APIResourcesResponse[src]

impl Response for GetDiscoveryAPIGroupResponse[src]

impl Response for GetDiscoveryV1beta1APIResourcesResponse[src]

impl Response for GetEventsAPIGroupResponse[src]

impl Response for GetEventsV1APIResourcesResponse[src]

impl Response for GetEventsV1beta1APIResourcesResponse[src]

impl Response for GetExtensionsAPIGroupResponse[src]

impl Response for GetExtensionsV1beta1APIResourcesResponse[src]

impl Response for GetFlowcontrolApiserverAPIGroupResponse[src]

impl Response for GetFlowcontrolApiserverV1alpha1APIResourcesResponse[src]

impl Response for GetFlowcontrolApiserverV1beta1APIResourcesResponse[src]

impl Response for GetInternalApiserverAPIGroupResponse[src]

impl Response for GetInternalApiserverV1alpha1APIResourcesResponse[src]

impl Response for GetNetworkingAPIGroupResponse[src]

impl Response for GetNetworkingV1APIResourcesResponse[src]

impl Response for GetNetworkingV1beta1APIResourcesResponse[src]

impl Response for GetNodeAPIGroupResponse[src]

impl Response for GetNodeV1APIResourcesResponse[src]

impl Response for GetNodeV1alpha1APIResourcesResponse[src]

impl Response for GetNodeV1beta1APIResourcesResponse[src]

impl Response for GetPolicyAPIGroupResponse[src]

impl Response for GetPolicyV1beta1APIResourcesResponse[src]

impl Response for GetRbacAuthorizationAPIGroupResponse[src]

impl Response for GetRbacAuthorizationV1APIResourcesResponse[src]

impl Response for GetRbacAuthorizationV1alpha1APIResourcesResponse[src]

impl Response for GetRbacAuthorizationV1beta1APIResourcesResponse[src]

impl Response for GetSchedulingAPIGroupResponse[src]

impl Response for GetSchedulingV1APIResourcesResponse[src]

impl Response for GetSchedulingV1alpha1APIResourcesResponse[src]

impl Response for GetSchedulingV1beta1APIResourcesResponse[src]

impl Response for GetServiceAccountIssuerOpenIDConfigurationResponse[src]

impl Response for GetServiceAccountIssuerOpenIDKeysetResponse[src]

impl Response for GetStorageAPIGroupResponse[src]

impl Response for GetStorageV1APIResourcesResponse[src]

impl Response for GetStorageV1alpha1APIResourcesResponse[src]

impl Response for GetStorageV1beta1APIResourcesResponse[src]

impl Response for LogFileHandlerResponse[src]

impl Response for LogFileListHandlerResponse[src]

impl Response for k8s_openapi::kube_aggregator::pkg::apis::apiregistration::v1::ReadAPIServiceResponse[src]

impl Response for k8s_openapi::kube_aggregator::pkg::apis::apiregistration::v1::ReadAPIServiceStatusResponse[src]

impl Response for k8s_openapi::kube_aggregator::pkg::apis::apiregistration::v1beta1::ReadAPIServiceResponse[src]

impl Response for k8s_openapi::kube_aggregator::pkg::apis::apiregistration::v1beta1::ReadAPIServiceStatusResponse[src]

impl<T> Response for CreateResponse<T> where
    T: DeserializeOwned
[src]

impl<T> Response for DeleteResponse<T> where
    T: DeserializeOwned
[src]

impl<T> Response for ListResponse<T> where
    T: DeserializeOwned + ListableResource
[src]

impl<T> Response for PatchResponse<T> where
    T: DeserializeOwned
[src]

impl<T> Response for ReplaceResponse<T> where
    T: DeserializeOwned
[src]

impl<T> Response for WatchResponse<T> where
    T: DeserializeOwned
[src]

Loading content...