pub struct RiskBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> RiskBuilder<S>
impl<S: State> RiskBuilder<S>
Sourcepub fn id(self, value: String) -> RiskBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> RiskBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn schema(self, value: String) -> RiskBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn schema(self, value: String) -> RiskBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn maybe_schema(self, value: Option<String>) -> RiskBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn maybe_schema(self, value: Option<String>) -> RiskBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn aleph_url(self, value: impl Into<String>) -> RiskBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
pub fn aleph_url(self, value: impl Into<String>) -> RiskBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
Sourcepub fn maybe_aleph_url(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
pub fn maybe_aleph_url(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
Sourcepub fn country(self, value: impl Into<String>) -> RiskBuilder<SetCountry<S>>where
S::Country: IsUnset,
pub fn country(self, value: impl Into<String>) -> RiskBuilder<SetCountry<S>>where
S::Country: IsUnset,
Sourcepub fn maybe_country(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetCountry<S>>where
S::Country: IsUnset,
pub fn maybe_country(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetCountry<S>>where
S::Country: IsUnset,
Sourcepub fn date(self, value: impl Into<String>) -> RiskBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn date(self, value: impl Into<String>) -> RiskBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn maybe_date(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn maybe_date(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn description(
self,
value: impl Into<String>,
) -> RiskBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<String>,
) -> RiskBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn duration(self, value: f64) -> RiskBuilder<SetDuration<S>>where
S::Duration: IsUnset,
pub fn duration(self, value: f64) -> RiskBuilder<SetDuration<S>>where
S::Duration: IsUnset,
Sourcepub fn maybe_duration(self, value: Option<f64>) -> RiskBuilder<SetDuration<S>>where
S::Duration: IsUnset,
pub fn maybe_duration(self, value: Option<f64>) -> RiskBuilder<SetDuration<S>>where
S::Duration: IsUnset,
Sourcepub fn end_date(self, value: impl Into<String>) -> RiskBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
pub fn end_date(self, value: impl Into<String>) -> RiskBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
Sourcepub fn maybe_end_date(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
pub fn maybe_end_date(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
Sourcepub fn entity(self, value: impl Into<String>) -> RiskBuilder<SetEntity<S>>where
S::Entity: IsUnset,
pub fn entity(self, value: impl Into<String>) -> RiskBuilder<SetEntity<S>>where
S::Entity: IsUnset,
Required.
Property: Entity
Sourcepub fn index_text(
self,
value: impl Into<String>,
) -> RiskBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
pub fn index_text(
self,
value: impl Into<String>,
) -> RiskBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
Sourcepub fn maybe_index_text(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
pub fn maybe_index_text(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
Sourcepub fn listing_date(
self,
value: impl Into<String>,
) -> RiskBuilder<SetListingDate<S>>where
S::ListingDate: IsUnset,
pub fn listing_date(
self,
value: impl Into<String>,
) -> RiskBuilder<SetListingDate<S>>where
S::ListingDate: IsUnset,
Sourcepub fn maybe_listing_date(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetListingDate<S>>where
S::ListingDate: IsUnset,
pub fn maybe_listing_date(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetListingDate<S>>where
S::ListingDate: IsUnset,
Sourcepub fn modified_at(
self,
value: impl Into<String>,
) -> RiskBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
pub fn modified_at(
self,
value: impl Into<String>,
) -> RiskBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
Sourcepub fn maybe_modified_at(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
pub fn maybe_modified_at(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
Sourcepub fn names_mentioned(
self,
value: impl Into<String>,
) -> RiskBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
pub fn names_mentioned(
self,
value: impl Into<String>,
) -> RiskBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
Sourcepub fn maybe_names_mentioned(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
pub fn maybe_names_mentioned(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
Sourcepub fn proof(self, value: impl Into<String>) -> RiskBuilder<SetProof<S>>where
S::Proof: IsUnset,
pub fn proof(self, value: impl Into<String>) -> RiskBuilder<SetProof<S>>where
S::Proof: IsUnset,
Sourcepub fn maybe_proof(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetProof<S>>where
S::Proof: IsUnset,
pub fn maybe_proof(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetProof<S>>where
S::Proof: IsUnset,
Sourcepub fn publisher(self, value: impl Into<String>) -> RiskBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
pub fn publisher(self, value: impl Into<String>) -> RiskBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
Sourcepub fn maybe_publisher(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
pub fn maybe_publisher(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
Sourcepub fn publisher_url(
self,
value: impl Into<String>,
) -> RiskBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
pub fn publisher_url(
self,
value: impl Into<String>,
) -> RiskBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
Sourcepub fn maybe_publisher_url(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
pub fn maybe_publisher_url(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
Sourcepub fn reason(self, value: impl Into<String>) -> RiskBuilder<SetReason<S>>where
S::Reason: IsUnset,
pub fn reason(self, value: impl Into<String>) -> RiskBuilder<SetReason<S>>where
S::Reason: IsUnset,
Sourcepub fn maybe_reason(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetReason<S>>where
S::Reason: IsUnset,
pub fn maybe_reason(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetReason<S>>where
S::Reason: IsUnset,
Sourcepub fn record_id(self, value: impl Into<String>) -> RiskBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
pub fn record_id(self, value: impl Into<String>) -> RiskBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
Sourcepub fn maybe_record_id(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
pub fn maybe_record_id(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
Sourcepub fn retrieved_at(
self,
value: impl Into<String>,
) -> RiskBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
pub fn retrieved_at(
self,
value: impl Into<String>,
) -> RiskBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
Sourcepub fn maybe_retrieved_at(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
pub fn maybe_retrieved_at(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
Sourcepub fn source_url(
self,
value: impl Into<String>,
) -> RiskBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
pub fn source_url(
self,
value: impl Into<String>,
) -> RiskBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
Sourcepub fn maybe_source_url(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
pub fn maybe_source_url(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
Sourcepub fn start_date(
self,
value: impl Into<String>,
) -> RiskBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
pub fn start_date(
self,
value: impl Into<String>,
) -> RiskBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
Sourcepub fn maybe_start_date(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
pub fn maybe_start_date(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
Sourcepub fn status(self, value: impl Into<String>) -> RiskBuilder<SetStatus<S>>where
S::Status: IsUnset,
pub fn status(self, value: impl Into<String>) -> RiskBuilder<SetStatus<S>>where
S::Status: IsUnset,
Sourcepub fn maybe_status(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetStatus<S>>where
S::Status: IsUnset,
pub fn maybe_status(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetStatus<S>>where
S::Status: IsUnset,
Sourcepub fn summary(self, value: impl Into<String>) -> RiskBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn summary(self, value: impl Into<String>) -> RiskBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Sourcepub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Sourcepub fn topics(self, value: impl Into<String>) -> RiskBuilder<SetTopics<S>>where
S::Topics: IsUnset,
pub fn topics(self, value: impl Into<String>) -> RiskBuilder<SetTopics<S>>where
S::Topics: IsUnset,
Sourcepub fn maybe_topics(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetTopics<S>>where
S::Topics: IsUnset,
pub fn maybe_topics(
self,
value: Option<impl Into<String>>,
) -> RiskBuilder<SetTopics<S>>where
S::Topics: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for RiskBuilder<S>
impl<S> RefUnwindSafe for RiskBuilder<S>
impl<S> Send for RiskBuilder<S>
impl<S> Sync for RiskBuilder<S>
impl<S> Unpin for RiskBuilder<S>
impl<S> UnsafeUnpin for RiskBuilder<S>
impl<S> UnwindSafe for RiskBuilder<S>
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