pub struct UpdateDealRequest {Show 13 fields
pub title: Option<String>,
pub value: Option<String>,
pub currency: Option<String>,
pub user_id: Option<i32>,
pub person_id: Option<i32>,
pub org_id: Option<i32>,
pub pipeline_id: Option<i32>,
pub stage_id: Option<i32>,
pub status: Option<Status>,
pub expected_close_date: Option<String>,
pub probability: Option<f32>,
pub lost_reason: Option<String>,
pub visible_to: Option<VisibleTo>,
}
Fields§
§title: Option<String>
The title of the deal
value: Option<String>
The value of the deal.
currency: Option<String>
The currency of the deal. Accepts a 3-character currency code.
user_id: Option<i32>
The ID of the user which will be the new owner of the deal.
person_id: Option<i32>
The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first.
org_id: Option<i32>
The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first.
pipeline_id: Option<i32>
The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that pipeline_id
and stage_id
should not be used together as pipeline_id
will be ignored.
stage_id: Option<i32>
The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the stage_id
.
status: Option<Status>
open = Open, won = Won, lost = Lost, deleted = Deleted.
expected_close_date: Option<String>
The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD.
probability: Option<f32>
The success probability percentage of the deal. Used/shown only when deal_probability
for the pipeline of the deal is enabled.
lost_reason: Option<String>
The optional message about why the deal was lost (to be used when status = lost)
visible_to: Option<VisibleTo>
Implementations§
Source§impl UpdateDealRequest
impl UpdateDealRequest
pub fn new() -> UpdateDealRequest
Trait Implementations§
Source§impl Clone for UpdateDealRequest
impl Clone for UpdateDealRequest
Source§fn clone(&self) -> UpdateDealRequest
fn clone(&self) -> UpdateDealRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more