#[non_exhaustive]pub struct Api {
pub service: String,
pub operation: String,
pub protocol: String,
pub version: String,
/* private fields */
}Expand description
This message defines attributes associated with API operations, such as a network API request. The terminology is based on the conventions used by Google APIs, Istio, and OpenAPI.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.service: StringThe API service name. It is a logical identifier for a networked API, such as “pubsub.googleapis.com”. The naming syntax depends on the API management system being used for handling the request.
operation: StringThe API operation name. For gRPC requests, it is the fully qualified API
method name, such as “google.pubsub.v1.Publisher.Publish”. For OpenAPI
requests, it is the operationId, such as “getPet”.
protocol: StringThe API protocol used for sending the request, such as “http”, “https”, “grpc”, or “internal”.
version: StringThe API version associated with the API operation above, such as “v1” or “v1alpha1”.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Api
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnwindSafe for Api
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