pub struct CallFeedItem {
pub phone_number: String,
pub country_code: String,
pub call_tracking_enabled: bool,
pub call_conversion_action: String,
pub call_conversion_tracking_disabled: bool,
pub call_conversion_reporting_state: i32,
}
Expand description
Represents a Call extension.
Fields§
§phone_number: String
The advertiser’s phone number to append to the ad. This string must not be empty.
country_code: String
Uppercase two-letter country code of the advertiser’s phone number. This string must not be empty.
call_tracking_enabled: bool
Indicates whether call tracking is enabled. By default, call tracking is not enabled.
call_conversion_action: String
The conversion action to attribute a call conversion to. If not set a default conversion action is used. This field only has effect if call_tracking_enabled is set to true. Otherwise this field is ignored.
call_conversion_tracking_disabled: bool
If true, disable call conversion tracking. call_conversion_action should not be set if this is true. Optional.
call_conversion_reporting_state: i32
Enum value that indicates whether this call extension uses its own call conversion setting (or just have call conversion disabled), or following the account level setting.
Implementations§
Source§impl CallFeedItem
impl CallFeedItem
Sourcepub fn call_conversion_reporting_state(&self) -> CallConversionReportingState
pub fn call_conversion_reporting_state(&self) -> CallConversionReportingState
Returns the enum value of call_conversion_reporting_state
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_call_conversion_reporting_state(
&mut self,
value: CallConversionReportingState,
)
pub fn set_call_conversion_reporting_state( &mut self, value: CallConversionReportingState, )
Sets call_conversion_reporting_state
to the provided enum value.
Trait Implementations§
Source§impl Clone for CallFeedItem
impl Clone for CallFeedItem
Source§fn clone(&self) -> CallFeedItem
fn clone(&self) -> CallFeedItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CallFeedItem
impl Debug for CallFeedItem
Source§impl Default for CallFeedItem
impl Default for CallFeedItem
Source§impl Message for CallFeedItem
impl Message for CallFeedItem
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for CallFeedItem
impl PartialEq for CallFeedItem
impl StructuralPartialEq for CallFeedItem
Auto Trait Implementations§
impl Freeze for CallFeedItem
impl RefUnwindSafe for CallFeedItem
impl Send for CallFeedItem
impl Sync for CallFeedItem
impl Unpin for CallFeedItem
impl UnwindSafe for CallFeedItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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