pub struct GeoTargetConstant {
pub resource_name: String,
pub id: i64,
pub name: String,
pub country_code: String,
pub target_type: String,
pub status: i32,
pub canonical_name: String,
pub parent_geo_target: String,
}
Expand description
A geo target constant.
Fields§
§resource_name: String
Output only. The resource name of the geo target constant. Geo target constant resource names have the form:
geoTargetConstants/{geo_target_constant_id}
id: i64
Output only. The ID of the geo target constant.
name: String
Output only. Geo target constant English name.
country_code: String
Output only. The ISO-3166-1 alpha-2 country code that is associated with the target.
target_type: String
Output only. Geo target constant target type.
status: i32
Output only. Geo target constant status.
canonical_name: String
Output only. The fully qualified English name, consisting of the target’s name and that of its parent and country.
parent_geo_target: String
Output only. The resource name of the parent geo target constant. Geo target constant resource names have the form:
geoTargetConstants/{parent_geo_target_constant_id}
Implementations§
Source§impl GeoTargetConstant
impl GeoTargetConstant
Sourcepub fn status(&self) -> GeoTargetConstantStatus
pub fn status(&self) -> GeoTargetConstantStatus
Returns the enum value of status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_status(&mut self, value: GeoTargetConstantStatus)
pub fn set_status(&mut self, value: GeoTargetConstantStatus)
Sets status
to the provided enum value.
Trait Implementations§
Source§impl Clone for GeoTargetConstant
impl Clone for GeoTargetConstant
Source§fn clone(&self) -> GeoTargetConstant
fn clone(&self) -> GeoTargetConstant
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GeoTargetConstant
impl Debug for GeoTargetConstant
Source§impl Default for GeoTargetConstant
impl Default for GeoTargetConstant
Source§impl Message for GeoTargetConstant
impl Message for GeoTargetConstant
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for GeoTargetConstant
impl PartialEq for GeoTargetConstant
impl StructuralPartialEq for GeoTargetConstant
Auto Trait Implementations§
impl Freeze for GeoTargetConstant
impl RefUnwindSafe for GeoTargetConstant
impl Send for GeoTargetConstant
impl Sync for GeoTargetConstant
impl Unpin for GeoTargetConstant
impl UnwindSafe for GeoTargetConstant
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request