Enum google_api_proto::google::ads::googleads::v14::enums::hotel_rate_type_enum::HotelRateType
source · #[repr(i32)]pub enum HotelRateType {
Unspecified = 0,
Unknown = 1,
Unavailable = 2,
PublicRate = 3,
QualifiedRate = 4,
PrivateRate = 5,
}
Expand description
Enum describing possible hotel rate types.
Variants§
Unspecified = 0
Not specified.
Unknown = 1
The value is unknown in this version.
Rate type information is unavailable.
PublicRate = 3
Rates available to everyone.
QualifiedRate = 4
A membership program rate is available and satisfies basic requirements like having a public rate available. UI treatment will strikethrough the public rate and indicate that a discount is available to the user. For more on Qualified Rates, visit https://developers.google.com/hotels/hotel-ads/dev-guide/qualified-rates
PrivateRate = 5
Rates available to users that satisfy some eligibility criteria, for example, all signed-in users, 20% of mobile users, all mobile users in Canada, etc.
Implementations§
source§impl HotelRateType
impl HotelRateType
source§impl HotelRateType
impl HotelRateType
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for HotelRateType
impl Clone for HotelRateType
source§fn clone(&self) -> HotelRateType
fn clone(&self) -> HotelRateType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HotelRateType
impl Debug for HotelRateType
source§impl Default for HotelRateType
impl Default for HotelRateType
source§fn default() -> HotelRateType
fn default() -> HotelRateType
source§impl From<HotelRateType> for i32
impl From<HotelRateType> for i32
source§fn from(value: HotelRateType) -> i32
fn from(value: HotelRateType) -> i32
source§impl Hash for HotelRateType
impl Hash for HotelRateType
source§impl Ord for HotelRateType
impl Ord for HotelRateType
source§fn cmp(&self, other: &HotelRateType) -> Ordering
fn cmp(&self, other: &HotelRateType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for HotelRateType
impl PartialEq for HotelRateType
source§fn eq(&self, other: &HotelRateType) -> bool
fn eq(&self, other: &HotelRateType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HotelRateType
impl PartialOrd for HotelRateType
source§fn partial_cmp(&self, other: &HotelRateType) -> Option<Ordering>
fn partial_cmp(&self, other: &HotelRateType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for HotelRateType
impl TryFrom<i32> for HotelRateType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<HotelRateType, DecodeError>
fn try_from(value: i32) -> Result<HotelRateType, DecodeError>
impl Copy for HotelRateType
impl Eq for HotelRateType
impl StructuralPartialEq for HotelRateType
Auto Trait Implementations§
impl Freeze for HotelRateType
impl RefUnwindSafe for HotelRateType
impl Send for HotelRateType
impl Sync for HotelRateType
impl Unpin for HotelRateType
impl UnwindSafe for HotelRateType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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