Struct k8s_openapi::apiextensions_apiserver::pkg::apis::apiextensions::v1::ServiceReference
source · pub struct ServiceReference {
pub name: String,
pub namespace: String,
pub path: Option<String>,
pub port: Option<i32>,
}
Expand description
ServiceReference holds a reference to Service.legacy.k8s.io
Fields§
§name: String
name is the name of the service. Required
namespace: String
namespace is the namespace of the service. Required
path: Option<String>
path is an optional URL path at which the webhook will be contacted.
port: Option<i32>
port is an optional service port at which the webhook will be contacted. port
should be a valid port number (1-65535, inclusive). Defaults to 443 for backward compatibility.
Trait Implementations§
source§impl Clone for ServiceReference
impl Clone for ServiceReference
source§fn clone(&self) -> ServiceReference
fn clone(&self) -> ServiceReference
Returns a copy 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 ServiceReference
impl Debug for ServiceReference
source§impl DeepMerge for ServiceReference
impl DeepMerge for ServiceReference
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
Merge
other
into self
.source§impl Default for ServiceReference
impl Default for ServiceReference
source§fn default() -> ServiceReference
fn default() -> ServiceReference
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ServiceReference
impl<'de> Deserialize<'de> for ServiceReference
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 ServiceReference
impl PartialEq for ServiceReference
source§impl Serialize for ServiceReference
impl Serialize for ServiceReference
impl StructuralPartialEq for ServiceReference
Auto Trait Implementations§
impl Freeze for ServiceReference
impl RefUnwindSafe for ServiceReference
impl Send for ServiceReference
impl Sync for ServiceReference
impl Unpin for ServiceReference
impl UnwindSafe for ServiceReference
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)