pub struct UpdateProjectRequest<'a> {Show 21 fields
pub project_id: String,
pub client_id: Option<i64>,
pub name: Option<String>,
pub code: Option<String>,
pub is_active: Option<bool>,
pub is_billable: Option<bool>,
pub is_fixed_fee: Option<bool>,
pub bill_by: Option<String>,
pub hourly_rate: Option<f64>,
pub budget: Option<f64>,
pub budget_by: Option<String>,
pub budget_is_monthly: Option<bool>,
pub notify_when_over_budget: Option<bool>,
pub over_budget_notification_percentage: Option<f64>,
pub show_budget_to_all: Option<bool>,
pub cost_budget: Option<f64>,
pub cost_budget_include_expenses: Option<bool>,
pub fee: Option<f64>,
pub notes: Option<String>,
pub starts_on: Option<String>,
pub ends_on: Option<String>,
/* private fields */
}Expand description
Create this with the associated client method.
That method takes required values as arguments. Set optional values using builder methods on this struct.
Fields§
§project_id: String§client_id: Option<i64>§name: Option<String>§code: Option<String>§is_active: Option<bool>§is_billable: Option<bool>§is_fixed_fee: Option<bool>§bill_by: Option<String>§hourly_rate: Option<f64>§budget: Option<f64>§budget_by: Option<String>§budget_is_monthly: Option<bool>§notify_when_over_budget: Option<bool>§over_budget_notification_percentage: Option<f64>§show_budget_to_all: Option<bool>§cost_budget: Option<f64>§cost_budget_include_expenses: Option<bool>§fee: Option<f64>§notes: Option<String>§starts_on: Option<String>§ends_on: Option<String>Implementations§
Source§impl<'a> UpdateProjectRequest<'a>
impl<'a> UpdateProjectRequest<'a>
pub async fn send(self) -> Result<Project>
pub fn client_id(self, client_id: i64) -> Self
pub fn name(self, name: &str) -> Self
pub fn code(self, code: &str) -> Self
pub fn is_active(self, is_active: bool) -> Self
pub fn is_billable(self, is_billable: bool) -> Self
pub fn is_fixed_fee(self, is_fixed_fee: bool) -> Self
pub fn bill_by(self, bill_by: &str) -> Self
pub fn hourly_rate(self, hourly_rate: f64) -> Self
pub fn budget(self, budget: f64) -> Self
pub fn budget_by(self, budget_by: &str) -> Self
pub fn budget_is_monthly(self, budget_is_monthly: bool) -> Self
pub fn notify_when_over_budget(self, notify_when_over_budget: bool) -> Self
pub fn over_budget_notification_percentage( self, over_budget_notification_percentage: f64, ) -> Self
pub fn show_budget_to_all(self, show_budget_to_all: bool) -> Self
pub fn cost_budget(self, cost_budget: f64) -> Self
pub fn cost_budget_include_expenses( self, cost_budget_include_expenses: bool, ) -> Self
pub fn fee(self, fee: f64) -> Self
pub fn notes(self, notes: &str) -> Self
pub fn starts_on(self, starts_on: &str) -> Self
pub fn ends_on(self, ends_on: &str) -> Self
Auto Trait Implementations§
impl<'a> Freeze for UpdateProjectRequest<'a>
impl<'a> !RefUnwindSafe for UpdateProjectRequest<'a>
impl<'a> Send for UpdateProjectRequest<'a>
impl<'a> Sync for UpdateProjectRequest<'a>
impl<'a> Unpin for UpdateProjectRequest<'a>
impl<'a> !UnwindSafe for UpdateProjectRequest<'a>
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