pub struct CreateEstimateRequest<'a> {
pub client_id: Option<i64>,
pub number: Option<String>,
pub purchase_order: Option<String>,
pub tax: Option<f64>,
pub tax2: Option<f64>,
pub discount: Option<f64>,
pub subject: Option<String>,
pub notes: Option<String>,
pub currency: Option<String>,
pub issue_date: Option<String>,
pub line_items: Option<Vec<Value>>,
/* 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§
§client_id: Option<i64>§number: Option<String>§purchase_order: Option<String>§tax: Option<f64>§tax2: Option<f64>§discount: Option<f64>§subject: Option<String>§notes: Option<String>§currency: Option<String>§issue_date: Option<String>§line_items: Option<Vec<Value>>Implementations§
Source§impl<'a> CreateEstimateRequest<'a>
impl<'a> CreateEstimateRequest<'a>
pub async fn send(self) -> Result<Estimate>
pub fn client_id(self, client_id: i64) -> Self
pub fn number(self, number: &str) -> Self
pub fn purchase_order(self, purchase_order: &str) -> Self
pub fn tax(self, tax: f64) -> Self
pub fn tax2(self, tax2: f64) -> Self
pub fn discount(self, discount: f64) -> Self
pub fn subject(self, subject: &str) -> Self
pub fn notes(self, notes: &str) -> Self
pub fn currency(self, currency: &str) -> Self
pub fn issue_date(self, issue_date: &str) -> Self
pub fn line_items(self, line_items: Vec<Value>) -> Self
Auto Trait Implementations§
impl<'a> Freeze for CreateEstimateRequest<'a>
impl<'a> !RefUnwindSafe for CreateEstimateRequest<'a>
impl<'a> Send for CreateEstimateRequest<'a>
impl<'a> Sync for CreateEstimateRequest<'a>
impl<'a> Unpin for CreateEstimateRequest<'a>
impl<'a> !UnwindSafe for CreateEstimateRequest<'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