pub struct Dependency {
pub issue_id: String,
pub depends_on_id: String,
pub dep_type: DependencyType,
pub created_at: DateTime<Utc>,
pub created_by: Option<String>,
pub metadata: Option<String>,
pub thread_id: Option<String>,
}Expand description
A relationship between two issues.
Fields§
§issue_id: StringThe issue that depends on another.
depends_on_id: StringThe issue being depended upon.
dep_type: DependencyTypeThe type of dependency relationship.
created_at: DateTime<Utc>When the dependency was created.
created_by: Option<String>Who created the dependency.
metadata: Option<String>Type-specific metadata (JSON).
thread_id: Option<String>Thread ID for conversation threading.
Implementations§
Source§impl Dependency
impl Dependency
Sourcepub fn blocks(
issue_id: impl Into<String>,
depends_on_id: impl Into<String>,
) -> Self
pub fn blocks( issue_id: impl Into<String>, depends_on_id: impl Into<String>, ) -> Self
Create a new blocking dependency.
Sourcepub fn parent_child(
child_id: impl Into<String>,
parent_id: impl Into<String>,
) -> Self
pub fn parent_child( child_id: impl Into<String>, parent_id: impl Into<String>, ) -> Self
Create a parent-child relationship.
Sourcepub fn with_creator(self, creator: impl Into<String>) -> Self
pub fn with_creator(self, creator: impl Into<String>) -> Self
Set the creator of this dependency.
Sourcepub fn with_metadata(self, metadata: impl Into<String>) -> Self
pub fn with_metadata(self, metadata: impl Into<String>) -> Self
Set metadata for this dependency.
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§fn clone(&self) -> Dependency
fn clone(&self) -> Dependency
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 Dependency
impl Debug for Dependency
Source§impl<'de> Deserialize<'de> for Dependency
impl<'de> Deserialize<'de> for Dependency
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 Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
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