Company

Struct Company 

Source
pub struct Company {
Show 20 fields pub decimal_symbol: Option<String>, pub base_uri: Option<String>, pub plan_type: Option<String>, pub expense_feature: Option<bool>, pub is_active: Option<bool>, pub time_format: Option<String>, pub color_scheme: Option<String>, pub weekly_capacity: Option<i64>, pub name: Option<String>, pub week_start_day: Option<String>, pub thousands_separator: Option<String>, pub invoice_feature: Option<bool>, pub estimate_feature: Option<bool>, pub clock: Option<String>, pub wants_timestamp_timers: Option<bool>, pub full_domain: Option<String>, pub currency_code_display: Option<String>, pub currency_symbol_display: Option<String>, pub approval_feature: Option<bool>, pub date_format: Option<String>,
}

Fields§

§decimal_symbol: Option<String>

Symbol used when formatting decimals.

§base_uri: Option<String>

The Harvest URL for the company.

§plan_type: Option<String>

The type of plan the company is on. Examples: trial, free, or simple-v4

§expense_feature: Option<bool>

Whether the expense module is enabled.

§is_active: Option<bool>

Whether the company is active or archived.

§time_format: Option<String>

The format used to display time in Harvest. Returns either decimal or hours_minutes.

§color_scheme: Option<String>

The color scheme being used in the Harvest web client.

§weekly_capacity: Option<i64>

The weekly capacity in seconds.

§name: Option<String>

The name of the company.

§week_start_day: Option<String>

The weekday used as the start of the week. Returns one of: Saturday, Sunday, or Monday.

§thousands_separator: Option<String>

Separator used when formatting numbers.

§invoice_feature: Option<bool>

Whether the invoice module is enabled.

§estimate_feature: Option<bool>

Whether the estimate module is enabled.

§clock: Option<String>

Used to represent whether the company is using a 12-hour or 24-hour clock. Returns either 12h or 24h.

§wants_timestamp_timers: Option<bool>

Whether time is tracked via duration or start and end times.

§full_domain: Option<String>

The Harvest domain for the company.

§currency_code_display: Option<String>

How to display the currency code when formatting currency. Returns one of: iso_code_none, iso_code_before, or iso_code_after.

§currency_symbol_display: Option<String>

How to display the currency symbol when formatting currency. Returns one of: symbol_none, symbol_before, or symbol_after.

§approval_feature: Option<bool>

Whether the approval module is enabled.

§date_format: Option<String>

The format used to display date in Harvest. Returns one of: %m/%d/%Y, %d/%m/%Y, %Y-%m-%d, %d.%m.%Y,.%Y.%m.%d or %Y/%m/%d.

Trait Implementations§

Source§

impl Debug for Company

Source§

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

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

impl Default for Company

Source§

fn default() -> Company

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Company

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 Company

Source§

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

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

impl Serialize for Company

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>,