pub struct ResolveServiceRequest {
pub endpoint_filter: Option<String>,
pub max_endpoints: Option<i32>,
}
Expand description
The request message for LookupService.ResolveService. Looks up a service by its name, returns the service and its endpoints.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields
endpoint_filter: Option<String>
Optional. The filter applied to the endpoints of the resolved service. General filter
string syntax: ()
* can be `name`, `address`, `port`, or `metadata.` for map field *
can be <
, >
, <=
, >=
, !=
, =
, :
. Of which :
means HAS
, and is roughly the same as =
* must be the same data type as field *
can be AND
, OR
, NOT
Examples of valid filters: * metadata.owner
returns endpoints that have a annotation with the key owner
, this is the same as metadata:owner
* metadata.protocol=gRPC
returns endpoints that have key/value protocol=gRPC
* address=192.108.1.105
returns endpoints that have this address * port>8080
returns endpoints that have port number larger than 8080 * name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c
returns endpoints that have name that is alphabetically later than the string, so “endpoint-e” is returned but “endpoint-a” is not * metadata.owner!=sd AND metadata.foo=bar
returns endpoints that have owner
in annotation key but value is not sd
AND have key/value foo=bar
* doesnotexist.foo=bar
returns an empty list. Note that endpoint doesn’t have a field called “doesnotexist”. Since the filter does not match any endpoint, it returns no results For more information about filtering, see API Filtering.
max_endpoints: Option<i32>
Optional. The maximum number of endpoints to return. Defaults to 25. Maximum is 100. If a value less than one is specified, the Default is used. If a value greater than the Maximum is specified, the Maximum is used.
Trait Implementations
sourceimpl Clone for ResolveServiceRequest
impl Clone for ResolveServiceRequest
sourcefn clone(&self) -> ResolveServiceRequest
fn clone(&self) -> ResolveServiceRequest
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ResolveServiceRequest
impl Debug for ResolveServiceRequest
sourceimpl Default for ResolveServiceRequest
impl Default for ResolveServiceRequest
sourcefn default() -> ResolveServiceRequest
fn default() -> ResolveServiceRequest
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ResolveServiceRequest
impl<'de> Deserialize<'de> for ResolveServiceRequest
sourcefn 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
sourceimpl Serialize for ResolveServiceRequest
impl Serialize for ResolveServiceRequest
impl RequestValue for ResolveServiceRequest
Auto Trait Implementations
impl RefUnwindSafe for ResolveServiceRequest
impl Send for ResolveServiceRequest
impl Sync for ResolveServiceRequest
impl Unpin for ResolveServiceRequest
impl UnwindSafe for ResolveServiceRequest
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more