pub trait ServiceExt: ResourceBuilder {
// Required methods
fn new(name: impl ToString) -> Self;
fn cluster_ip(
name: impl ToString,
ports: impl IntoIterator<Item = ServicePort>,
) -> Self;
fn node_port(name: impl ToString) -> Self;
fn load_balancer(name: impl ToString) -> Self;
fn external_name(name: impl ToString, external_name: impl ToString) -> Self;
fn with_labels(
name: impl ToString,
labels: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> Self;
fn spec(self, spec: ServiceSpec) -> Self;
fn selector(
self,
match_labels: impl IntoIterator<Item = (impl ToString, impl ToString)>,
) -> Self;
}
Required Methods§
fn new(name: impl ToString) -> Self
fn cluster_ip( name: impl ToString, ports: impl IntoIterator<Item = ServicePort>, ) -> Self
fn node_port(name: impl ToString) -> Self
fn load_balancer(name: impl ToString) -> Self
fn external_name(name: impl ToString, external_name: impl ToString) -> Self
fn with_labels( name: impl ToString, labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
fn spec(self, spec: ServiceSpec) -> Self
fn selector( self, match_labels: impl IntoIterator<Item = (impl ToString, impl ToString)>, ) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.