pub struct LocalServicesLead {
pub resource_name: String,
pub id: i64,
pub category_id: String,
pub service_id: String,
pub contact_details: Option<ContactDetails>,
pub lead_type: i32,
pub lead_status: i32,
pub creation_date_time: String,
pub locale: String,
pub note: Option<Note>,
pub lead_charged: bool,
pub credit_details: Option<CreditDetails>,
}
Expand description
Data from Local Services Lead. Contains details of Lead which is generated when user calls, messages or books service from advertiser. More info: https://ads.google.com/local-services-ads
Fields§
§resource_name: String
Output only. The resource name of the local services lead data. Local Services Lead resource name have the form
customers/{customer_id}/localServicesLead/{local_services_lead_id}
id: i64
Output only. ID of this Lead.
category_id: String
Output only. Service category of the lead. For example:
xcat:service_area_business_hvac
,
xcat:service_area_business_real_estate_agent
, etc.
For more details see:
https://developers.google.com/google-ads/api/data/codes-formats#local_services_ids
service_id: String
Output only. Service for the category. For example: buyer_agent
,
seller_agent
for the category of
xcat:service_area_business_real_estate_agent
.
contact_details: Option<ContactDetails>
Output only. Lead’s contact details.
lead_type: i32
Output only. Type of Local Services lead: phone, message, booking, etc.
lead_status: i32
Output only. Current status of lead.
creation_date_time: String
Output only. The date time at which lead was created by Local Services Ads. The format is “YYYY-MM-DD HH:MM:SS” in the Google Ads account’s timezone. Examples: “2018-03-05 09:15:00” or “2018-02-01 14:34:30”
locale: String
Output only. Language used by the Local Services provider linked to lead. See https://developers.google.com/google-ads/api/data/codes-formats#locales
note: Option<Note>
Output only. Note added by advertiser for the lead.
lead_charged: bool
Output only. True if the advertiser was charged for the lead.
credit_details: Option<CreditDetails>
Output only. Credit details of the lead.
Implementations§
Source§impl LocalServicesLead
impl LocalServicesLead
Sourcepub fn lead_type(&self) -> LeadType
pub fn lead_type(&self) -> LeadType
Returns the enum value of lead_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_lead_type(&mut self, value: LeadType)
pub fn set_lead_type(&mut self, value: LeadType)
Sets lead_type
to the provided enum value.
Sourcepub fn lead_status(&self) -> LeadStatus
pub fn lead_status(&self) -> LeadStatus
Returns the enum value of lead_status
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_lead_status(&mut self, value: LeadStatus)
pub fn set_lead_status(&mut self, value: LeadStatus)
Sets lead_status
to the provided enum value.
Trait Implementations§
Source§impl Clone for LocalServicesLead
impl Clone for LocalServicesLead
Source§fn clone(&self) -> LocalServicesLead
fn clone(&self) -> LocalServicesLead
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LocalServicesLead
impl Debug for LocalServicesLead
Source§impl Default for LocalServicesLead
impl Default for LocalServicesLead
Source§impl Message for LocalServicesLead
impl Message for LocalServicesLead
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 LocalServicesLead
impl PartialEq for LocalServicesLead
impl StructuralPartialEq for LocalServicesLead
Auto Trait Implementations§
impl Freeze for LocalServicesLead
impl RefUnwindSafe for LocalServicesLead
impl Send for LocalServicesLead
impl Sync for LocalServicesLead
impl Unpin for LocalServicesLead
impl UnwindSafe for LocalServicesLead
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