#[non_exhaustive]pub struct ServiceConfig {
pub name: String,
pub title: String,
pub apis: Vec<Api>,
pub documentation: Option<Documentation>,
pub quota: Option<Quota>,
pub authentication: Option<Authentication>,
pub usage: Option<Usage>,
pub endpoints: Vec<Endpoint>,
pub monitored_resources: Vec<MonitoredResourceDescriptor>,
pub monitoring: Option<Monitoring>,
/* private fields */
}
Expand description
The configuration of the service.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: String
The DNS address at which this service is available.
An example DNS address would be:
calendar.googleapis.com
.
title: String
The product title for this service.
apis: Vec<Api>
A list of API interfaces exported by this service. Contains only the names, versions, and method names of the interfaces.
documentation: Option<Documentation>
Additional API documentation. Contains only the summary and the documentation URL.
quota: Option<Quota>
Quota configuration.
authentication: Option<Authentication>
Auth configuration. Contains only the OAuth rules.
usage: Option<Usage>
Configuration controlling usage of this service.
endpoints: Vec<Endpoint>
Configuration for network endpoints. Contains only the names and aliases of the endpoints.
monitored_resources: Vec<MonitoredResourceDescriptor>
Defines the monitored resources used by this service. This is required by the [Service.monitoring][google.api.Service.monitoring] and [Service.logging][google.api.Service.logging] configurations.
monitoring: Option<Monitoring>
Monitoring configuration. This should not include the ‘producer_destinations’ field.
Implementations§
Source§impl ServiceConfig
impl ServiceConfig
pub fn new() -> Self
Sourcepub fn set_documentation<T>(self, v: T) -> Selfwhere
T: Into<Documentation>,
pub fn set_documentation<T>(self, v: T) -> Selfwhere
T: Into<Documentation>,
Sets the value of documentation.
Sourcepub fn set_or_clear_documentation<T>(self, v: Option<T>) -> Selfwhere
T: Into<Documentation>,
pub fn set_or_clear_documentation<T>(self, v: Option<T>) -> Selfwhere
T: Into<Documentation>,
Sets or clears the value of documentation.
Sourcepub fn set_or_clear_quota<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_quota<T>(self, v: Option<T>) -> Self
Sets or clears the value of quota.
Sourcepub fn set_authentication<T>(self, v: T) -> Selfwhere
T: Into<Authentication>,
pub fn set_authentication<T>(self, v: T) -> Selfwhere
T: Into<Authentication>,
Sets the value of authentication.
Sourcepub fn set_or_clear_authentication<T>(self, v: Option<T>) -> Selfwhere
T: Into<Authentication>,
pub fn set_or_clear_authentication<T>(self, v: Option<T>) -> Selfwhere
T: Into<Authentication>,
Sets or clears the value of authentication.
Sourcepub fn set_or_clear_usage<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_usage<T>(self, v: Option<T>) -> Self
Sets or clears the value of usage.
Sourcepub fn set_endpoints<T, V>(self, v: T) -> Self
pub fn set_endpoints<T, V>(self, v: T) -> Self
Sets the value of endpoints.
Sourcepub fn set_monitored_resources<T, V>(self, v: T) -> Self
pub fn set_monitored_resources<T, V>(self, v: T) -> Self
Sets the value of monitored_resources.
Sourcepub fn set_monitoring<T>(self, v: T) -> Selfwhere
T: Into<Monitoring>,
pub fn set_monitoring<T>(self, v: T) -> Selfwhere
T: Into<Monitoring>,
Sets the value of monitoring.
Sourcepub fn set_or_clear_monitoring<T>(self, v: Option<T>) -> Selfwhere
T: Into<Monitoring>,
pub fn set_or_clear_monitoring<T>(self, v: Option<T>) -> Selfwhere
T: Into<Monitoring>,
Sets or clears the value of monitoring.
Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more