pub struct TaskDependency {
pub task_id: TaskId,
pub depends_on_id: TaskId,
pub dependency_type: DependencyType,
pub created_at: DateTime<Utc>,
}Expand description
A dependency edge: task_id depends on depends_on_id.
§Example
use pe_tasks::dependency::{TaskDependency, DependencyType};
let dep = TaskDependency::new("deploy", "test", DependencyType::Blocks);
assert_eq!(dep.dependency_type, DependencyType::Blocks);Fields§
§task_id: TaskIdThe task that is blocked/waiting.
depends_on_id: TaskIdThe task it depends on (must complete first for Blocks).
dependency_type: DependencyTypeNature of the dependency.
created_at: DateTime<Utc>When this dependency was created.
Implementations§
Trait Implementations§
Source§impl Clone for TaskDependency
impl Clone for TaskDependency
Source§fn clone(&self) -> TaskDependency
fn clone(&self) -> TaskDependency
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaskDependency
impl Debug for TaskDependency
Source§impl<'de> Deserialize<'de> for TaskDependency
impl<'de> Deserialize<'de> for TaskDependency
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
Auto Trait Implementations§
impl Freeze for TaskDependency
impl RefUnwindSafe for TaskDependency
impl Send for TaskDependency
impl Sync for TaskDependency
impl Unpin for TaskDependency
impl UnsafeUnpin for TaskDependency
impl UnwindSafe for TaskDependency
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