pub struct Allocation {Show 24 fields
pub id: UUID,
pub resource_type_id: ResourceType,
pub assignment_type_id: AssignmentType,
pub start: Date,
pub end: Date,
pub unit: Unit,
pub hours_per_day: Option<i64>,
pub hours_per_week: Option<i64>,
pub hours_per_month: Option<i64>,
pub hours_per_allocation: Option<i64>,
pub hours_ratio_of_capacity: Option<f64>,
pub allocate_on_time_off_days: bool,
pub total_hours: i64,
pub is_billable: bool,
pub notes: String,
pub read_only: bool,
pub entity: Entity,
pub created_at: Timestamp,
pub member: Option<Entity>,
pub placeholder: Option<Entity>,
pub project: Option<Project>,
pub role: Option<Entity>,
pub task: Option<Entity>,
pub time_off_type: Option<Entity>,
}Expand description
Model for Allocation used with Read operations.
Fields§
§id: UUID§resource_type_id: ResourceType§assignment_type_id: AssignmentType§start: Date§end: Date§unit: Unit§hours_per_day: Option<i64>§hours_per_week: Option<i64>§hours_per_month: Option<i64>§hours_per_allocation: Option<i64>§hours_ratio_of_capacity: Option<f64>§allocate_on_time_off_days: bool§total_hours: i64§is_billable: bool§notes: String§read_only: bool§entity: Entity§created_at: Timestamp§member: Option<Entity>§placeholder: Option<Entity>§project: Option<Project>§role: Option<Entity>§task: Option<Entity>§time_off_type: Option<Entity>Trait Implementations§
Source§impl Debug for Allocation
impl Debug for Allocation
Source§impl<'de> Deserialize<'de> for Allocation
impl<'de> Deserialize<'de> for Allocation
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 Allocation
impl PartialEq for Allocation
Source§fn eq(&self, other: &Allocation) -> bool
fn eq(&self, other: &Allocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for Allocation
impl Serialize for Allocation
impl StructuralPartialEq for Allocation
Auto Trait Implementations§
impl Freeze for Allocation
impl RefUnwindSafe for Allocation
impl Send for Allocation
impl Sync for Allocation
impl Unpin for Allocation
impl UnsafeUnpin for Allocation
impl UnwindSafe for Allocation
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