pub struct OccupancyBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> OccupancyBuilder<S>
impl<S: State> OccupancyBuilder<S>
Sourcepub fn build(self) -> Occupancywhere
S: IsComplete,
pub fn build(self) -> Occupancywhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> OccupancyBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> OccupancyBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn schema(self, value: String) -> OccupancyBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn schema(self, value: String) -> OccupancyBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn maybe_schema(
self,
value: Option<String>,
) -> OccupancyBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn maybe_schema(
self,
value: Option<String>,
) -> OccupancyBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn aleph_url(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
pub fn aleph_url(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
Sourcepub fn maybe_aleph_url(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
pub fn maybe_aleph_url(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
Sourcepub fn date(self, value: impl Into<String>) -> OccupancyBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn date(self, value: impl Into<String>) -> OccupancyBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn maybe_date(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn maybe_date(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn declaration_date(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetDeclarationDate<S>>where
S::DeclarationDate: IsUnset,
pub fn declaration_date(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetDeclarationDate<S>>where
S::DeclarationDate: IsUnset,
Sourcepub fn maybe_declaration_date(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetDeclarationDate<S>>where
S::DeclarationDate: IsUnset,
pub fn maybe_declaration_date(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetDeclarationDate<S>>where
S::DeclarationDate: IsUnset,
Sourcepub fn description(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn end_date(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
pub fn end_date(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
Sourcepub fn maybe_end_date(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
pub fn maybe_end_date(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
Sourcepub fn holder(self, value: impl Into<String>) -> OccupancyBuilder<SetHolder<S>>where
S::Holder: IsUnset,
pub fn holder(self, value: impl Into<String>) -> OccupancyBuilder<SetHolder<S>>where
S::Holder: IsUnset,
Required.
Property: Holder
Sourcepub fn index_text(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
pub fn index_text(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
Sourcepub fn maybe_index_text(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
pub fn maybe_index_text(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
Sourcepub fn modified_at(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
pub fn modified_at(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
Sourcepub fn maybe_modified_at(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
pub fn maybe_modified_at(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
Sourcepub fn names_mentioned(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
pub fn names_mentioned(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
Sourcepub fn maybe_names_mentioned(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
pub fn maybe_names_mentioned(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
Sourcepub fn post(self, value: impl Into<String>) -> OccupancyBuilder<SetPost<S>>where
S::Post: IsUnset,
pub fn post(self, value: impl Into<String>) -> OccupancyBuilder<SetPost<S>>where
S::Post: IsUnset,
Required.
Property: Position occupied
Sourcepub fn proof(self, value: impl Into<String>) -> OccupancyBuilder<SetProof<S>>where
S::Proof: IsUnset,
pub fn proof(self, value: impl Into<String>) -> OccupancyBuilder<SetProof<S>>where
S::Proof: IsUnset,
Sourcepub fn maybe_proof(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetProof<S>>where
S::Proof: IsUnset,
pub fn maybe_proof(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetProof<S>>where
S::Proof: IsUnset,
Sourcepub fn publisher(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
pub fn publisher(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
Sourcepub fn maybe_publisher(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
pub fn maybe_publisher(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
Sourcepub fn publisher_url(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
pub fn publisher_url(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
Sourcepub fn maybe_publisher_url(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
pub fn maybe_publisher_url(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
Sourcepub fn record_id(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
pub fn record_id(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
Sourcepub fn maybe_record_id(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
pub fn maybe_record_id(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
Sourcepub fn retrieved_at(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
pub fn retrieved_at(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
Sourcepub fn maybe_retrieved_at(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
pub fn maybe_retrieved_at(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
Sourcepub fn source_url(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
pub fn source_url(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
Sourcepub fn maybe_source_url(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
pub fn maybe_source_url(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
Sourcepub fn start_date(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
pub fn start_date(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
Sourcepub fn maybe_start_date(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
pub fn maybe_start_date(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
Sourcepub fn status(self, value: impl Into<String>) -> OccupancyBuilder<SetStatus<S>>where
S::Status: IsUnset,
pub fn status(self, value: impl Into<String>) -> OccupancyBuilder<SetStatus<S>>where
S::Status: IsUnset,
Sourcepub fn maybe_status(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetStatus<S>>where
S::Status: IsUnset,
pub fn maybe_status(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetStatus<S>>where
S::Status: IsUnset,
Sourcepub fn summary(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn summary(
self,
value: impl Into<String>,
) -> OccupancyBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Sourcepub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> OccupancyBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for OccupancyBuilder<S>
impl<S> RefUnwindSafe for OccupancyBuilder<S>
impl<S> Send for OccupancyBuilder<S>
impl<S> Sync for OccupancyBuilder<S>
impl<S> Unpin for OccupancyBuilder<S>
impl<S> UnsafeUnpin for OccupancyBuilder<S>
impl<S> UnwindSafe for OccupancyBuilder<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