pub struct ClientReport {
pub id: Option<i64>,
pub client_name: String,
pub project_id: Option<i64>,
pub report_period_start: NaiveDate,
pub report_period_end: NaiveDate,
pub total_hours: f64,
pub hourly_rate: Option<f64>,
pub notes: Option<String>,
pub status: ReportStatus,
pub created_at: DateTime<Utc>,
pub sent_at: Option<DateTime<Utc>>,
}Fields§
§id: Option<i64>§client_name: String§project_id: Option<i64>§report_period_start: NaiveDate§report_period_end: NaiveDate§total_hours: f64§hourly_rate: Option<f64>§notes: Option<String>§status: ReportStatus§created_at: DateTime<Utc>§sent_at: Option<DateTime<Utc>>Implementations§
Trait Implementations§
Source§impl Clone for ClientReport
impl Clone for ClientReport
Source§fn clone(&self) -> ClientReport
fn clone(&self) -> ClientReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientReport
impl Debug for ClientReport
Source§impl<'de> Deserialize<'de> for ClientReport
impl<'de> Deserialize<'de> for ClientReport
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 PartialEq for ClientReport
impl PartialEq for ClientReport
Source§impl Serialize for ClientReport
impl Serialize for ClientReport
impl StructuralPartialEq for ClientReport
Auto Trait Implementations§
impl Freeze for ClientReport
impl RefUnwindSafe for ClientReport
impl Send for ClientReport
impl Sync for ClientReport
impl Unpin for ClientReport
impl UnwindSafe for ClientReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more