pub struct NewIssueRow<'a> {
pub id: Uuid,
pub customer_id: Option<Uuid>,
pub subject: &'a str,
pub description: Option<&'a str>,
pub priority: &'a str,
pub sla_id: Option<Uuid>,
pub opened_at: DateTime<Utc>,
pub response_by: Option<DateTime<Utc>>,
pub resolution_by: Option<DateTime<Utc>>,
}Expand description
The exact row a raised ticket writes.
Mirrors the raw column shape rather than the Issue entity: priority is carried as a free string
and cast at the DB ($5::issue_priority), so a bad priority fails as a DB error rather than a
deserialize panic. The deadlines are already snapshotted by the caller.
Fields§
§id: Uuid§customer_id: Option<Uuid>§subject: &'a str§description: Option<&'a str>§priority: &'a str§sla_id: Option<Uuid>§opened_at: DateTime<Utc>§response_by: Option<DateTime<Utc>>§resolution_by: Option<DateTime<Utc>>Auto Trait Implementations§
impl<'a> Freeze for NewIssueRow<'a>
impl<'a> RefUnwindSafe for NewIssueRow<'a>
impl<'a> Send for NewIssueRow<'a>
impl<'a> Sync for NewIssueRow<'a>
impl<'a> Unpin for NewIssueRow<'a>
impl<'a> UnsafeUnpin for NewIssueRow<'a>
impl<'a> UnwindSafe for NewIssueRow<'a>
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> 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