pub struct ServiceSpec {
pub cluster_ip: String,
pub external_ips: Vec<String>,
pub load_balancer_ip: Option<String>,
pub type: Option<LoadBalancerType>,
pub external_name: Option<String>,
pub external_traffic_policy: Option<ExternalTrafficPolicy>,
pub ports: Vec<ServicePort>,
pub selector: Option<HashMap<String, String>>,
}Fields§
§cluster_ip: String§external_ips: Vec<String>§load_balancer_ip: Option<String>§type: Option<LoadBalancerType>§external_name: Option<String>§external_traffic_policy: Option<ExternalTrafficPolicy>§ports: Vec<ServicePort>§selector: Option<HashMap<String, String>>Trait Implementations§
Source§impl Clone for ServiceSpec
impl Clone for ServiceSpec
Source§fn clone(&self) -> ServiceSpec
fn clone(&self) -> ServiceSpec
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 ServiceSpec
impl Debug for ServiceSpec
Source§impl Default for ServiceSpec
impl Default for ServiceSpec
Source§fn default() -> ServiceSpec
fn default() -> ServiceSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceSpecwhere
ServiceSpec: Default,
impl<'de> Deserialize<'de> for ServiceSpecwhere
ServiceSpec: Default,
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 ServiceSpec
impl PartialEq for ServiceSpec
Source§impl Serialize for ServiceSpec
impl Serialize for ServiceSpec
Source§impl Spec for ServiceSpec
impl Spec for ServiceSpec
type Status = ServiceStatus
type Header = DefaultHeader
Source§fn make_same(&mut self, other: &Self)
fn make_same(&mut self, other: &Self)
in case of applying, we have some fields that are generated
or override. So need to special logic to reset them so we can do proper comparison
Source§const NAME_SPACED: bool = true
const NAME_SPACED: bool = true
if true, spec is namespaced
fn label() -> &'static str
fn api_version() -> String
fn kind() -> String
Source§impl StoreSpec for ServiceSpec
impl StoreSpec for ServiceSpec
impl StructuralPartialEq for ServiceSpec
Auto Trait Implementations§
impl Freeze for ServiceSpec
impl RefUnwindSafe for ServiceSpec
impl Send for ServiceSpec
impl Sync for ServiceSpec
impl Unpin for ServiceSpec
impl UnwindSafe for ServiceSpec
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