pub struct AddLeadRequest {
pub title: String,
pub owner_id: Option<i32>,
pub label_ids: Option<Vec<Uuid>>,
pub person_id: Option<i32>,
pub organization_id: Option<i32>,
pub value: Option<Box<GetLeadsResponse200DataInnerValue>>,
pub expected_close_date: Option<String>,
pub visible_to: Option<VisibleTo>,
pub was_seen: Option<bool>,
}Fields§
§title: StringThe name of the lead
owner_id: Option<i32>The ID of the user which will be the owner of the created lead. If not provided, the user making the request will be used.
label_ids: Option<Vec<Uuid>>The IDs of the lead labels which will be associated with the lead
person_id: Option<i32>The ID of a person which this lead will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless organization_id is specified.
organization_id: Option<i32>The ID of an organization which this lead will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless person_id is specified.
value: Option<Box<GetLeadsResponse200DataInnerValue>>§expected_close_date: Option<String>The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD.
visible_to: Option<VisibleTo>§was_seen: Option<bool>A flag indicating whether the lead was seen by someone in the Pipedrive UI
Implementations§
Source§impl AddLeadRequest
impl AddLeadRequest
pub fn new(title: String) -> AddLeadRequest
Trait Implementations§
Source§impl Clone for AddLeadRequest
impl Clone for AddLeadRequest
Source§fn clone(&self) -> AddLeadRequest
fn clone(&self) -> AddLeadRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more