Estimate

Struct Estimate 

Source
pub struct Estimate {
Show 24 fields pub notes: Option<String>, pub number: Option<String>, pub client: Option<Value>, pub currency: Option<String>, pub purchase_order: Option<String>, pub subject: Option<String>, pub state: Option<String>, pub sent_at: Option<String>, pub client_key: Option<String>, pub creator: Option<Value>, pub tax2: Option<f64>, pub tax2_amount: Option<f64>, pub discount: Option<f64>, pub discount_amount: Option<f64>, pub accepted_at: Option<String>, pub updated_at: Option<String>, pub created_at: Option<String>, pub id: Option<i64>, pub tax_amount: Option<f64>, pub issue_date: Option<String>, pub declined_at: Option<String>, pub amount: Option<f64>, pub line_items: Option<Vec<EstimateLineItem>>, pub tax: Option<f64>,
}

Fields§

§notes: Option<String>

Any additional notes included on the estimate.

§number: Option<String>

If no value is set, the number will be automatically generated.

§client: Option<Value>

An object containing estimate’s client id and name.

§currency: Option<String>

The currency code associated with this estimate.

§purchase_order: Option<String>

The purchase order number.

§subject: Option<String>

The estimate subject.

§state: Option<String>

The current state of the estimate: draft, sent, accepted, or declined.

§sent_at: Option<String>

Date and time the estimate was sent.

§client_key: Option<String>

Used to build a URL to the public web invoice for your client:https://{ACCOUNT_SUBDOMAIN}.harvestapp.com/client/estimates/abc123456

§creator: Option<Value>

An object containing the id and name of the person that created the estimate.

§tax2: Option<f64>

This percentage is applied to the subtotal, including line items and discounts.

§tax2_amount: Option<f64>

The amount calculated from tax2.

§discount: Option<f64>

This percentage is subtracted from the subtotal.

§discount_amount: Option<f64>

The amount calcuated from discount.

§accepted_at: Option<String>

Date and time the estimate was accepted.

§updated_at: Option<String>

Date and time the estimate was last updated.

§created_at: Option<String>

Date and time the estimate was created.

§id: Option<i64>

Unique ID for the estimate.

§tax_amount: Option<f64>

The first amount of tax included, calculated from tax. If no tax is defined, this value will be null.

§issue_date: Option<String>

Date the estimate was issued.

§declined_at: Option<String>

Date and time the estimate was declined.

§amount: Option<f64>

The total amount for the estimate, including any discounts and taxes.

§line_items: Option<Vec<EstimateLineItem>>

Array of estimate line items.

§tax: Option<f64>

This percentage is applied to the subtotal, including line items and discounts.

Trait Implementations§

Source§

impl Debug for Estimate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Estimate

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for Estimate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Serialize for Estimate

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,