UpdateProjectRequest

Struct UpdateProjectRequest 

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

Source

pub async fn send(self) -> Result<Project>

Source

pub fn client_id(self, client_id: i64) -> Self

Source

pub fn name(self, name: &str) -> Self

Source

pub fn code(self, code: &str) -> Self

Source

pub fn is_active(self, is_active: bool) -> Self

Source

pub fn is_billable(self, is_billable: bool) -> Self

Source

pub fn is_fixed_fee(self, is_fixed_fee: bool) -> Self

Source

pub fn bill_by(self, bill_by: &str) -> Self

Source

pub fn hourly_rate(self, hourly_rate: f64) -> Self

Source

pub fn budget(self, budget: f64) -> Self

Source

pub fn budget_by(self, budget_by: &str) -> Self

Source

pub fn budget_is_monthly(self, budget_is_monthly: bool) -> Self

Source

pub fn notify_when_over_budget(self, notify_when_over_budget: bool) -> Self

Source

pub fn over_budget_notification_percentage( self, over_budget_notification_percentage: f64, ) -> Self

Source

pub fn show_budget_to_all(self, show_budget_to_all: bool) -> Self

Source

pub fn cost_budget(self, cost_budget: f64) -> Self

Source

pub fn cost_budget_include_expenses( self, cost_budget_include_expenses: bool, ) -> Self

Source

pub fn fee(self, fee: f64) -> Self

Source

pub fn notes(self, notes: &str) -> Self

Source

pub fn starts_on(self, starts_on: &str) -> Self

Source

pub fn ends_on(self, ends_on: &str) -> Self

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