Enum google_api_proto::google::cloud::channel::v1::ChannelPartnerLinkView
source · #[repr(i32)]pub enum ChannelPartnerLinkView {
Unspecified = 0,
Basic = 1,
Full = 2,
}
Expand description
The level of granularity the [ChannelPartnerLink][google.cloud.channel.v1.ChannelPartnerLink] will display.
Variants§
Unspecified = 0
The default / unset value. The API will default to the BASIC view.
Basic = 1
Includes all fields except the [ChannelPartnerLink.channel_partner_cloud_identity_info][google.cloud.channel.v1.ChannelPartnerLink.channel_partner_cloud_identity_info].
Full = 2
Includes all fields.
Implementations§
source§impl ChannelPartnerLinkView
impl ChannelPartnerLinkView
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of ChannelPartnerLinkView
.
sourcepub fn from_i32(value: i32) -> Option<ChannelPartnerLinkView>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ChannelPartnerLinkView>
Converts an i32
to a ChannelPartnerLinkView
, or None
if value
is not a valid variant.
source§impl ChannelPartnerLinkView
impl ChannelPartnerLinkView
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 ChannelPartnerLinkView
impl Clone for ChannelPartnerLinkView
source§fn clone(&self) -> ChannelPartnerLinkView
fn clone(&self) -> ChannelPartnerLinkView
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChannelPartnerLinkView
impl Debug for ChannelPartnerLinkView
source§impl Default for ChannelPartnerLinkView
impl Default for ChannelPartnerLinkView
source§fn default() -> ChannelPartnerLinkView
fn default() -> ChannelPartnerLinkView
source§impl From<ChannelPartnerLinkView> for i32
impl From<ChannelPartnerLinkView> for i32
source§fn from(value: ChannelPartnerLinkView) -> i32
fn from(value: ChannelPartnerLinkView) -> i32
source§impl Hash for ChannelPartnerLinkView
impl Hash for ChannelPartnerLinkView
source§impl Ord for ChannelPartnerLinkView
impl Ord for ChannelPartnerLinkView
source§fn cmp(&self, other: &ChannelPartnerLinkView) -> Ordering
fn cmp(&self, other: &ChannelPartnerLinkView) -> 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 ChannelPartnerLinkView
impl PartialEq for ChannelPartnerLinkView
source§fn eq(&self, other: &ChannelPartnerLinkView) -> bool
fn eq(&self, other: &ChannelPartnerLinkView) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ChannelPartnerLinkView
impl PartialOrd for ChannelPartnerLinkView
source§fn partial_cmp(&self, other: &ChannelPartnerLinkView) -> Option<Ordering>
fn partial_cmp(&self, other: &ChannelPartnerLinkView) -> 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 ChannelPartnerLinkView
impl TryFrom<i32> for ChannelPartnerLinkView
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ChannelPartnerLinkView, UnknownEnumValue>
fn try_from(value: i32) -> Result<ChannelPartnerLinkView, UnknownEnumValue>
impl Copy for ChannelPartnerLinkView
impl Eq for ChannelPartnerLinkView
impl StructuralPartialEq for ChannelPartnerLinkView
Auto Trait Implementations§
impl Freeze for ChannelPartnerLinkView
impl RefUnwindSafe for ChannelPartnerLinkView
impl Send for ChannelPartnerLinkView
impl Sync for ChannelPartnerLinkView
impl Unpin for ChannelPartnerLinkView
impl UnwindSafe for ChannelPartnerLinkView
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