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
Object Safety§
This trait is not object safe.