pub struct ExternalSpec {
pub backends: Vec<String>,
pub endpoints: Vec<EndpointSpec>,
pub health: Option<HealthSpec>,
}Expand description
External service specification (proxy backend without a container)
Defines a service that is not managed by ZLayer but should be proxied
through ZLayer’s reverse proxy. The proxy registers static backend
addresses and routes traffic based on endpoint host/path matching.
Fields§
§backends: Vec<String>Static backend addresses (e.g., ["100.64.1.5:8096", "192.168.1.10:8096"])
These are the upstream addresses the proxy will forward traffic to. At least one backend is required.
endpoints: Vec<EndpointSpec>Endpoint definitions (proxy bindings)
Defines how public/internal traffic is routed to this external service.
health: Option<HealthSpec>Health check configuration
When specified, the proxy will health-check backends and remove unhealthy ones from the rotation.
Trait Implementations§
Source§impl Clone for ExternalSpec
impl Clone for ExternalSpec
Source§fn clone(&self) -> ExternalSpec
fn clone(&self) -> ExternalSpec
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 ExternalSpec
impl Debug for ExternalSpec
Source§impl<'de> Deserialize<'de> for ExternalSpec
impl<'de> Deserialize<'de> for ExternalSpec
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 ExternalSpec
impl PartialEq for ExternalSpec
Source§impl Serialize for ExternalSpec
impl Serialize for ExternalSpec
Source§impl Validate for ExternalSpec
impl Validate for ExternalSpec
Source§impl<'v_a> ValidateArgs<'v_a> for ExternalSpec
impl<'v_a> ValidateArgs<'v_a> for ExternalSpec
impl Eq for ExternalSpec
impl StructuralPartialEq for ExternalSpec
Auto Trait Implementations§
impl Freeze for ExternalSpec
impl RefUnwindSafe for ExternalSpec
impl Send for ExternalSpec
impl Sync for ExternalSpec
impl Unpin for ExternalSpec
impl UnsafeUnpin for ExternalSpec
impl UnwindSafe for ExternalSpec
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.