#[non_exhaustive]pub struct ServiceConfig {
pub eligibility_criteria: EligibilityCriteria,
pub support_end_time: Option<Timestamp>,
/* private fields */
}Expand description
Specifies eligibility information for the service.
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.eligibility_criteria: EligibilityCriteriaOutput only. The eligibility criteria for the service.
support_end_time: Option<Timestamp>Output only. The end time for eligibility criteria support. If not specified, no planned end time is set.
Implementations§
Source§impl ServiceConfig
impl ServiceConfig
pub fn new() -> Self
Sourcepub fn set_eligibility_criteria<T: Into<EligibilityCriteria>>(
self,
v: T,
) -> Self
pub fn set_eligibility_criteria<T: Into<EligibilityCriteria>>( self, v: T, ) -> Self
Sets the value of eligibility_criteria.
§Example
ⓘ
use google_cloud_networkconnectivity_v1::model::service_config::EligibilityCriteria;
let x0 = ServiceConfig::new().set_eligibility_criteria(EligibilityCriteria::NetworkServiceTierPremiumOnly);
let x1 = ServiceConfig::new().set_eligibility_criteria(EligibilityCriteria::NetworkServiceTierStandardOnly);
let x2 = ServiceConfig::new().set_eligibility_criteria(EligibilityCriteria::RequestEndpointRegionalEndpointOnly);Sourcepub fn set_support_end_time<T>(self, v: T) -> Self
pub fn set_support_end_time<T>(self, v: T) -> Self
Sets the value of support_end_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ServiceConfig::new().set_support_end_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_support_end_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_support_end_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of support_end_time.
§Example
ⓘ
use wkt::Timestamp;
let x = ServiceConfig::new().set_or_clear_support_end_time(Some(Timestamp::default()/* use setters */));
let x = ServiceConfig::new().set_or_clear_support_end_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
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 ServiceConfig
impl Debug for ServiceConfig
Source§impl Default for ServiceConfig
impl Default for ServiceConfig
Source§fn default() -> ServiceConfig
fn default() -> ServiceConfig
Returns the “default value” for a type. Read more
Source§impl Message for ServiceConfig
impl Message for ServiceConfig
Source§impl PartialEq for ServiceConfig
impl PartialEq for ServiceConfig
impl StructuralPartialEq for ServiceConfig
Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnwindSafe for ServiceConfig
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