pub struct IoK8sApiCoreV1HttpGetAction {
pub host: Option<String>,
pub http_headers: Vec<IoK8sApiCoreV1HttpHeader>,
pub path: Option<String>,
pub port: IoK8sApimachineryPkgUtilIntstrIntOrString,
pub scheme: Option<IoK8sApiCoreV1HttpGetActionScheme>,
}Expand description
HTTPGetAction describes an action based on HTTP Get requests.
Fields§
§host: Option<String>Host name to connect to, defaults to the pod IP. You probably want to set “Host” in httpHeaders instead.
http_headers: Vec<IoK8sApiCoreV1HttpHeader>Custom headers to set in the request. HTTP allows repeated headers.
path: Option<String>Path to access on the HTTP server.
port: IoK8sApimachineryPkgUtilIntstrIntOrStringName or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.
scheme: Option<IoK8sApiCoreV1HttpGetActionScheme>Scheme to use for connecting to the host. Defaults to HTTP.
Possible enum values:
"HTTP"means that the scheme used will be http://"HTTPS"means that the scheme used will be https://
Trait Implementations§
Source§impl Clone for IoK8sApiCoreV1HttpGetAction
impl Clone for IoK8sApiCoreV1HttpGetAction
Source§fn clone(&self) -> IoK8sApiCoreV1HttpGetAction
fn clone(&self) -> IoK8sApiCoreV1HttpGetAction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IoK8sApiCoreV1HttpGetAction
impl Debug for IoK8sApiCoreV1HttpGetAction
Source§impl<'de> Deserialize<'de> for IoK8sApiCoreV1HttpGetAction
impl<'de> Deserialize<'de> for IoK8sApiCoreV1HttpGetAction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&IoK8sApiCoreV1HttpGetAction> for IoK8sApiCoreV1HttpGetAction
impl From<&IoK8sApiCoreV1HttpGetAction> for IoK8sApiCoreV1HttpGetAction
Source§fn from(value: &IoK8sApiCoreV1HttpGetAction) -> Self
fn from(value: &IoK8sApiCoreV1HttpGetAction) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoK8sApiCoreV1HttpGetAction
impl RefUnwindSafe for IoK8sApiCoreV1HttpGetAction
impl Send for IoK8sApiCoreV1HttpGetAction
impl Sync for IoK8sApiCoreV1HttpGetAction
impl Unpin for IoK8sApiCoreV1HttpGetAction
impl UnwindSafe for IoK8sApiCoreV1HttpGetAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more