Enum google_api_proto::google::ads::admanager::v1::target_window_enum::TargetWindow
source · #[repr(i32)]pub enum TargetWindow {
Unspecified = 0,
Top = 1,
Blank = 2,
}
Expand description
Corresponds to an HTML link’s target attribute. See http://www.w3.org/TR/html401/present/frames.html#adef-target
Variants§
Unspecified = 0
Default value. This value is unused.
Top = 1
Specifies that the link should open in the full body of the page.
Blank = 2
Specifies that the link should open in a new window.
Implementations§
source§impl TargetWindow
impl TargetWindow
source§impl TargetWindow
impl TargetWindow
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 TargetWindow
impl Clone for TargetWindow
source§fn clone(&self) -> TargetWindow
fn clone(&self) -> TargetWindow
Returns a copy 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 TargetWindow
impl Debug for TargetWindow
source§impl Default for TargetWindow
impl Default for TargetWindow
source§fn default() -> TargetWindow
fn default() -> TargetWindow
Returns the “default value” for a type. Read more
source§impl From<TargetWindow> for i32
impl From<TargetWindow> for i32
source§fn from(value: TargetWindow) -> i32
fn from(value: TargetWindow) -> i32
Converts to this type from the input type.
source§impl Hash for TargetWindow
impl Hash for TargetWindow
source§impl Ord for TargetWindow
impl Ord for TargetWindow
source§fn cmp(&self, other: &TargetWindow) -> Ordering
fn cmp(&self, other: &TargetWindow) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TargetWindow
impl PartialEq for TargetWindow
source§fn eq(&self, other: &TargetWindow) -> bool
fn eq(&self, other: &TargetWindow) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TargetWindow
impl PartialOrd for TargetWindow
source§fn partial_cmp(&self, other: &TargetWindow) -> Option<Ordering>
fn partial_cmp(&self, other: &TargetWindow) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for TargetWindow
impl TryFrom<i32> for TargetWindow
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
source§fn try_from(value: i32) -> Result<TargetWindow, UnknownEnumValue>
fn try_from(value: i32) -> Result<TargetWindow, UnknownEnumValue>
Performs the conversion.
impl Copy for TargetWindow
impl Eq for TargetWindow
impl StructuralPartialEq for TargetWindow
Auto Trait Implementations§
impl Freeze for TargetWindow
impl RefUnwindSafe for TargetWindow
impl Send for TargetWindow
impl Sync for TargetWindow
impl Unpin for TargetWindow
impl UnwindSafe for TargetWindow
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
§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
Compare self to
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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
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>
Wrap the input message
T
in a tonic::Request