pub struct BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy {
pub data: Option<String>,
pub name: Option<String>,
}
Expand description
The configuration for a custom policy implemented by the user and deployed with the client.
This type is not used in any activity, and only used as part of another schema.
Fields§
§data: Option<String>
An optional, arbitrary JSON object with configuration data, understood by a locally installed custom policy implementation.
name: Option<String>
Identifies the custom policy. The value should match the name of a custom implementation registered on the gRPC clients. It should follow protocol buffer message naming conventions and include the full path (for example, myorg.CustomLbPolicy). The maximum length is 256 characters. Do not specify the same custom policy more than once for a backend. If you do, the configuration is rejected. For an example of how to use this field, see Use a custom policy.
Trait Implementations§
Source§impl Clone for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
impl Clone for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Source§fn clone(&self) -> BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
fn clone(&self) -> BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
impl Default for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Source§fn default() -> BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
fn default() -> BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Source§impl<'de> Deserialize<'de> for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
impl<'de> Deserialize<'de> for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
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>,
impl Part for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
Auto Trait Implementations§
impl Freeze for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
impl RefUnwindSafe for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
impl Send for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
impl Sync for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
impl Unpin for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
impl UnwindSafe for BackendServiceLocalityLoadBalancingPolicyConfigCustomPolicy
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
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>
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>
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