pub struct IssueBuilder { /* private fields */ }Expand description
Builder for Issue entity
Provides a fluent API for constructing Issue instances. System fields (id, metadata, timestamps) are auto-initialized.
Implementations§
Source§impl IssueBuilder
impl IssueBuilder
Sourcepub fn customer_id(self, value: Uuid) -> Self
pub fn customer_id(self, value: Uuid) -> Self
Set the customer_id field (optional)
Sourcepub fn description(self, value: String) -> Self
pub fn description(self, value: String) -> Self
Set the description field (optional)
Sourcepub fn priority(self, value: IssuePriority) -> Self
pub fn priority(self, value: IssuePriority) -> Self
Set the priority field (default: IssuePriority::default())
Sourcepub fn status(self, value: IssueStatus) -> Self
pub fn status(self, value: IssueStatus) -> Self
Set the status field (default: IssueStatus::default())
Sourcepub fn agreement_status(self, value: AgreementStatus) -> Self
pub fn agreement_status(self, value: AgreementStatus) -> Self
Set the agreement_status field (default: AgreementStatus::default())
Sourcepub fn response_by(self, value: DateTime<Utc>) -> Self
pub fn response_by(self, value: DateTime<Utc>) -> Self
Set the response_by field (optional)
Sourcepub fn resolution_by(self, value: DateTime<Utc>) -> Self
pub fn resolution_by(self, value: DateTime<Utc>) -> Self
Set the resolution_by field (optional)
Sourcepub fn first_responded_at(self, value: DateTime<Utc>) -> Self
pub fn first_responded_at(self, value: DateTime<Utc>) -> Self
Set the first_responded_at field (optional)
Sourcepub fn response_breached(self, value: bool) -> Self
pub fn response_breached(self, value: bool) -> Self
Set the response_breached field (default: false)
Sourcepub fn resolved_at(self, value: DateTime<Utc>) -> Self
pub fn resolved_at(self, value: DateTime<Utc>) -> Self
Set the resolved_at field (optional)
Sourcepub fn total_paused_mins(self, value: i32) -> Self
pub fn total_paused_mins(self, value: i32) -> Self
Set the total_paused_mins field (default: 0)
Sourcepub fn escalated_project_id(self, value: Uuid) -> Self
pub fn escalated_project_id(self, value: Uuid) -> Self
Set the escalated_project_id field (optional)
Trait Implementations§
Source§impl Clone for IssueBuilder
impl Clone for IssueBuilder
Source§impl Debug for IssueBuilder
impl Debug for IssueBuilder
Auto Trait Implementations§
impl Freeze for IssueBuilder
impl RefUnwindSafe for IssueBuilder
impl Send for IssueBuilder
impl Sync for IssueBuilder
impl Unpin for IssueBuilder
impl UnsafeUnpin for IssueBuilder
impl UnwindSafe for IssueBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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