Struct google_api_proto::google::ads::googleads::v17::common::SitelinkFeedItem
source · pub struct SitelinkFeedItem {
pub link_text: Option<String>,
pub line1: Option<String>,
pub line2: Option<String>,
pub final_urls: Vec<String>,
pub final_mobile_urls: Vec<String>,
pub tracking_url_template: Option<String>,
pub url_custom_parameters: Vec<CustomParameter>,
pub final_url_suffix: Option<String>,
}
Expand description
Represents a sitelink.
Fields§
§link_text: Option<String>
URL display text for the sitelink. The length of this string should be between 1 and 25, inclusive.
line1: Option<String>
First line of the description for the sitelink. If this value is set, line2 must also be set. The length of this string should be between 0 and 35, inclusive.
line2: Option<String>
Second line of the description for the sitelink. If this value is set, line1 must also be set. The length of this string should be between 0 and 35, inclusive.
final_urls: Vec<String>
A list of possible final URLs after all cross domain redirects.
final_mobile_urls: Vec<String>
A list of possible final mobile URLs after all cross domain redirects.
tracking_url_template: Option<String>
URL template for constructing a tracking URL.
url_custom_parameters: Vec<CustomParameter>
A list of mappings to be used for substituting URL custom parameter tags in the tracking_url_template, final_urls, and/or final_mobile_urls.
final_url_suffix: Option<String>
Final URL suffix to be appended to landing page URLs served with parallel tracking.
Implementations§
source§impl SitelinkFeedItem
impl SitelinkFeedItem
sourcepub fn link_text(&self) -> &str
pub fn link_text(&self) -> &str
Returns the value of link_text
, or the default value if link_text
is unset.
sourcepub fn line1(&self) -> &str
pub fn line1(&self) -> &str
Returns the value of line1
, or the default value if line1
is unset.
sourcepub fn line2(&self) -> &str
pub fn line2(&self) -> &str
Returns the value of line2
, or the default value if line2
is unset.
sourcepub fn tracking_url_template(&self) -> &str
pub fn tracking_url_template(&self) -> &str
Returns the value of tracking_url_template
, or the default value if tracking_url_template
is unset.
sourcepub fn final_url_suffix(&self) -> &str
pub fn final_url_suffix(&self) -> &str
Returns the value of final_url_suffix
, or the default value if final_url_suffix
is unset.
Trait Implementations§
source§impl Clone for SitelinkFeedItem
impl Clone for SitelinkFeedItem
source§fn clone(&self) -> SitelinkFeedItem
fn clone(&self) -> SitelinkFeedItem
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SitelinkFeedItem
impl Debug for SitelinkFeedItem
source§impl Default for SitelinkFeedItem
impl Default for SitelinkFeedItem
source§impl Message for SitelinkFeedItem
impl Message for SitelinkFeedItem
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for SitelinkFeedItem
impl PartialEq for SitelinkFeedItem
source§fn eq(&self, other: &SitelinkFeedItem) -> bool
fn eq(&self, other: &SitelinkFeedItem) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SitelinkFeedItem
Auto Trait Implementations§
impl Freeze for SitelinkFeedItem
impl RefUnwindSafe for SitelinkFeedItem
impl Send for SitelinkFeedItem
impl Sync for SitelinkFeedItem
impl Unpin for SitelinkFeedItem
impl UnwindSafe for SitelinkFeedItem
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<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