Struct google_api_proto::google::ads::googleads::v15::common::TextMessageFeedItem
source · pub struct TextMessageFeedItem {
pub business_name: Option<String>,
pub country_code: Option<String>,
pub phone_number: Option<String>,
pub text: Option<String>,
pub extension_text: Option<String>,
}
Expand description
An extension that users can click on to send a text message to the advertiser.
Fields§
§business_name: Option<String>
The business name to prepend to the message text. This field is required.
country_code: Option<String>
Uppercase two-letter country code of the advertiser’s phone number. This field is required.
phone_number: Option<String>
The advertiser’s phone number the message will be sent to. Required.
text: Option<String>
The text to show in the ad. This field is required.
extension_text: Option<String>
The message extension_text populated in the messaging app.
Implementations§
source§impl TextMessageFeedItem
impl TextMessageFeedItem
sourcepub fn business_name(&self) -> &str
pub fn business_name(&self) -> &str
Returns the value of business_name
, or the default value if business_name
is unset.
sourcepub fn country_code(&self) -> &str
pub fn country_code(&self) -> &str
Returns the value of country_code
, or the default value if country_code
is unset.
sourcepub fn phone_number(&self) -> &str
pub fn phone_number(&self) -> &str
Returns the value of phone_number
, or the default value if phone_number
is unset.
sourcepub fn extension_text(&self) -> &str
pub fn extension_text(&self) -> &str
Returns the value of extension_text
, or the default value if extension_text
is unset.
Trait Implementations§
source§impl Clone for TextMessageFeedItem
impl Clone for TextMessageFeedItem
source§fn clone(&self) -> TextMessageFeedItem
fn clone(&self) -> TextMessageFeedItem
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 TextMessageFeedItem
impl Debug for TextMessageFeedItem
source§impl Default for TextMessageFeedItem
impl Default for TextMessageFeedItem
source§impl Message for TextMessageFeedItem
impl Message for TextMessageFeedItem
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for TextMessageFeedItem
impl PartialEq for TextMessageFeedItem
source§fn eq(&self, other: &TextMessageFeedItem) -> bool
fn eq(&self, other: &TextMessageFeedItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TextMessageFeedItem
Auto Trait Implementations§
impl Freeze for TextMessageFeedItem
impl RefUnwindSafe for TextMessageFeedItem
impl Send for TextMessageFeedItem
impl Sync for TextMessageFeedItem
impl Unpin for TextMessageFeedItem
impl UnwindSafe for TextMessageFeedItem
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<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