pub struct SgGateway<P = PluginInstanceId> {
pub name: String,
pub parameters: SgParameters,
pub listeners: Vec<SgListener>,
pub plugins: Vec<P>,
}
Expand description
Gateway represents an instance of a service-traffic handling infrastructure by binding Listeners to a set of IP addresses.
Reference: Kubernetes Gateway Name of the Gateway. Global Unique.
Fields§
§name: String
§parameters: SgParameters
Some parameters necessary for the gateway.
listeners: Vec<SgListener>
Listeners associated with this Gateway. Listeners define logical endpoints that are bound on this Gateway’s addresses.
plugins: Vec<P>
Filters define the filters that are applied to requests that match this gateway.
Implementations§
Trait Implementations§
Source§impl<'de, P> Deserialize<'de> for SgGateway<P>
impl<'de, P> Deserialize<'de> for SgGateway<P>
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SgGateway<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SgGateway<P>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P> Serialize for SgGateway<P>where
P: Serialize,
impl<P> Serialize for SgGateway<P>where
P: Serialize,
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl<P> Freeze for SgGateway<P>
impl<P> RefUnwindSafe for SgGateway<P>where
P: RefUnwindSafe,
impl<P> Send for SgGateway<P>where
P: Send,
impl<P> Sync for SgGateway<P>where
P: Sync,
impl<P> Unpin for SgGateway<P>where
P: Unpin,
impl<P> UnwindSafe for SgGateway<P>where
P: UnwindSafe,
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more