pub struct IncidentBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> IncidentBuilder<S>
impl<S: State> IncidentBuilder<S>
Sourcepub fn build(self) -> Incidentwhere
S: IsComplete,
pub fn build(self) -> Incidentwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: IncidentId) -> IncidentBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: IncidentId) -> IncidentBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Source-backed id carried by this normalized pet-resort entity.
Sourcepub fn location_id(self, value: LocationId) -> IncidentBuilder<SetLocationId<S>>where
S::LocationId: IsUnset,
pub fn location_id(self, value: LocationId) -> IncidentBuilder<SetLocationId<S>>where
S::LocationId: IsUnset,
Required.
Source-backed location ID carried by this normalized pet-resort entity.
Sourcepub fn primary_subject(
self,
value: IncidentSubject,
) -> IncidentBuilder<SetPrimarySubject<S>>where
S::PrimarySubject: IsUnset,
pub fn primary_subject(
self,
value: IncidentSubject,
) -> IncidentBuilder<SetPrimarySubject<S>>where
S::PrimarySubject: IsUnset,
Required.
Source-backed primary subject carried by this normalized pet-resort entity.
Sourcepub fn category(self, value: Category) -> IncidentBuilder<SetCategory<S>>where
S::Category: IsUnset,
pub fn category(self, value: Category) -> IncidentBuilder<SetCategory<S>>where
S::Category: IsUnset,
Required.
Source-backed category carried by this normalized pet-resort entity.
Sourcepub fn severity(self, value: Severity) -> IncidentBuilder<SetSeverity<S>>where
S::Severity: IsUnset,
pub fn severity(self, value: Severity) -> IncidentBuilder<SetSeverity<S>>where
S::Severity: IsUnset,
Required.
Source-backed severity carried by this normalized pet-resort entity.
Sourcepub fn status(self, value: Status) -> IncidentBuilder<SetStatus<S>>where
S::Status: IsUnset,
pub fn status(self, value: Status) -> IncidentBuilder<SetStatus<S>>where
S::Status: IsUnset,
Required.
Source-backed status carried by this normalized pet-resort entity.
Sourcepub fn reported_by(self, value: ActorRef) -> IncidentBuilder<SetReportedBy<S>>where
S::ReportedBy: IsUnset,
pub fn reported_by(self, value: ActorRef) -> IncidentBuilder<SetReportedBy<S>>where
S::ReportedBy: IsUnset,
Required.
Source-backed reported by carried by this normalized pet-resort entity.
Sourcepub fn reported_at(
self,
value: DateTime<Utc>,
) -> IncidentBuilder<SetReportedAt<S>>where
S::ReportedAt: IsUnset,
pub fn reported_at(
self,
value: DateTime<Utc>,
) -> IncidentBuilder<SetReportedAt<S>>where
S::ReportedAt: IsUnset,
Required.
Source-backed reported at carried by this normalized pet-resort entity.
Sourcepub fn summary(self, value: Summary) -> IncidentBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn summary(self, value: Summary) -> IncidentBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Required.
Source-backed summary carried by this normalized pet-resort entity.