pub struct ServiceConnect {
pub native: Option<bool>,
pub sidecar_service: Option<Box<ServiceDefinition>>,
pub peer_meta: Option<PeeringServiceMeta>,
}
Expand description
ServiceConnect are the shared Connect settings between all service definitions from the agent to the state store.
Fields§
§native: Option<bool>
Native is true when this service can natively understand Connect.
sidecar_service: Option<Box<ServiceDefinition>>
SidecarService is a nested Service Definition to register at the same time. It’s purely a convenience mechanism to allow specifying a sidecar service along with the application service definition. It’s nested nature allows all of the fields to be defaulted which can reduce the amount of boilerplate needed to register a sidecar service separately, but the end result is identical to just making a second service registration via any other means.
peer_meta: Option<PeeringServiceMeta>
Trait Implementations§
Source§impl Clone for ServiceConnect
impl Clone for ServiceConnect
Source§fn clone(&self) -> ServiceConnect
fn clone(&self) -> ServiceConnect
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 ServiceConnect
impl Debug for ServiceConnect
Source§impl Default for ServiceConnect
impl Default for ServiceConnect
Source§fn default() -> ServiceConnect
fn default() -> ServiceConnect
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServiceConnect
impl<'de> Deserialize<'de> for ServiceConnect
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
Auto Trait Implementations§
impl Freeze for ServiceConnect
impl RefUnwindSafe for ServiceConnect
impl Send for ServiceConnect
impl Sync for ServiceConnect
impl Unpin for ServiceConnect
impl UnwindSafe for ServiceConnect
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