pub struct RuntimeComponentInitContainersLifecyclePreStopHttpGet {
pub host: Option<String>,
pub http_headers: Option<Vec<RuntimeComponentInitContainersLifecyclePreStopHttpGetHttpHeaders>>,
pub path: Option<String>,
pub port: IntOrString,
pub scheme: Option<String>,
}Expand description
HTTPGet specifies an HTTP GET request to perform.
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: Option<Vec<RuntimeComponentInitContainersLifecyclePreStopHttpGetHttpHeaders>>Custom headers to set in the request. HTTP allows repeated headers.
path: Option<String>Path to access on the HTTP server.
port: IntOrStringName 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<String>Scheme to use for connecting to the host. Defaults to HTTP.
Trait Implementations§
Source§impl Clone for RuntimeComponentInitContainersLifecyclePreStopHttpGet
impl Clone for RuntimeComponentInitContainersLifecyclePreStopHttpGet
Source§fn clone(&self) -> RuntimeComponentInitContainersLifecyclePreStopHttpGet
fn clone(&self) -> RuntimeComponentInitContainersLifecyclePreStopHttpGet
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 Default for RuntimeComponentInitContainersLifecyclePreStopHttpGet
impl Default for RuntimeComponentInitContainersLifecyclePreStopHttpGet
Source§fn default() -> RuntimeComponentInitContainersLifecyclePreStopHttpGet
fn default() -> RuntimeComponentInitContainersLifecyclePreStopHttpGet
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RuntimeComponentInitContainersLifecyclePreStopHttpGet
impl<'de> Deserialize<'de> for RuntimeComponentInitContainersLifecyclePreStopHttpGet
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 PartialEq for RuntimeComponentInitContainersLifecyclePreStopHttpGet
impl PartialEq for RuntimeComponentInitContainersLifecyclePreStopHttpGet
Source§fn eq(
&self,
other: &RuntimeComponentInitContainersLifecyclePreStopHttpGet,
) -> bool
fn eq( &self, other: &RuntimeComponentInitContainersLifecyclePreStopHttpGet, ) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RuntimeComponentInitContainersLifecyclePreStopHttpGet
Auto Trait Implementations§
impl Freeze for RuntimeComponentInitContainersLifecyclePreStopHttpGet
impl RefUnwindSafe for RuntimeComponentInitContainersLifecyclePreStopHttpGet
impl Send for RuntimeComponentInitContainersLifecyclePreStopHttpGet
impl Sync for RuntimeComponentInitContainersLifecyclePreStopHttpGet
impl Unpin for RuntimeComponentInitContainersLifecyclePreStopHttpGet
impl UnwindSafe for RuntimeComponentInitContainersLifecyclePreStopHttpGet
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