pub struct PassportBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> PassportBuilder<S>
impl<S: State> PassportBuilder<S>
Sourcepub fn build(self) -> Passportwhere
S: IsComplete,
pub fn build(self) -> Passportwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> PassportBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> PassportBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn schema(self, value: String) -> PassportBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn schema(self, value: String) -> PassportBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn maybe_schema(
self,
value: Option<String>,
) -> PassportBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn maybe_schema(
self,
value: Option<String>,
) -> PassportBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn aleph_url(
self,
value: impl Into<String>,
) -> PassportBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
pub fn aleph_url(
self,
value: impl Into<String>,
) -> PassportBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
Sourcepub fn maybe_aleph_url(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
pub fn maybe_aleph_url(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
Sourcepub fn birth_date(
self,
value: impl Into<String>,
) -> PassportBuilder<SetBirthDate<S>>where
S::BirthDate: IsUnset,
pub fn birth_date(
self,
value: impl Into<String>,
) -> PassportBuilder<SetBirthDate<S>>where
S::BirthDate: IsUnset,
Sourcepub fn maybe_birth_date(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetBirthDate<S>>where
S::BirthDate: IsUnset,
pub fn maybe_birth_date(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetBirthDate<S>>where
S::BirthDate: IsUnset,
Sourcepub fn birth_place(
self,
value: impl Into<String>,
) -> PassportBuilder<SetBirthPlace<S>>where
S::BirthPlace: IsUnset,
pub fn birth_place(
self,
value: impl Into<String>,
) -> PassportBuilder<SetBirthPlace<S>>where
S::BirthPlace: IsUnset,
Sourcepub fn maybe_birth_place(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetBirthPlace<S>>where
S::BirthPlace: IsUnset,
pub fn maybe_birth_place(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetBirthPlace<S>>where
S::BirthPlace: IsUnset,
Sourcepub fn country(self, value: impl Into<String>) -> PassportBuilder<SetCountry<S>>where
S::Country: IsUnset,
pub fn country(self, value: impl Into<String>) -> PassportBuilder<SetCountry<S>>where
S::Country: IsUnset,
Sourcepub fn maybe_country(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetCountry<S>>where
S::Country: IsUnset,
pub fn maybe_country(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetCountry<S>>where
S::Country: IsUnset,
Sourcepub fn date(self, value: impl Into<String>) -> PassportBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn date(self, value: impl Into<String>) -> PassportBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn maybe_date(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn maybe_date(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn description(
self,
value: impl Into<String>,
) -> PassportBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<String>,
) -> PassportBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn end_date(
self,
value: impl Into<String>,
) -> PassportBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
pub fn end_date(
self,
value: impl Into<String>,
) -> PassportBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
Sourcepub fn maybe_end_date(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
pub fn maybe_end_date(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
Sourcepub fn gender(self, value: impl Into<String>) -> PassportBuilder<SetGender<S>>where
S::Gender: IsUnset,
pub fn gender(self, value: impl Into<String>) -> PassportBuilder<SetGender<S>>where
S::Gender: IsUnset,
Sourcepub fn maybe_gender(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetGender<S>>where
S::Gender: IsUnset,
pub fn maybe_gender(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetGender<S>>where
S::Gender: IsUnset,
Sourcepub fn given_name(
self,
value: impl Into<String>,
) -> PassportBuilder<SetGivenName<S>>where
S::GivenName: IsUnset,
pub fn given_name(
self,
value: impl Into<String>,
) -> PassportBuilder<SetGivenName<S>>where
S::GivenName: IsUnset,
Sourcepub fn maybe_given_name(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetGivenName<S>>where
S::GivenName: IsUnset,
pub fn maybe_given_name(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetGivenName<S>>where
S::GivenName: IsUnset,
Sourcepub fn holder(self, value: impl Into<String>) -> PassportBuilder<SetHolder<S>>where
S::Holder: IsUnset,
pub fn holder(self, value: impl Into<String>) -> PassportBuilder<SetHolder<S>>where
S::Holder: IsUnset,
Required.
Property: Identification holder
Sourcepub fn index_text(
self,
value: impl Into<String>,
) -> PassportBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
pub fn index_text(
self,
value: impl Into<String>,
) -> PassportBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
Sourcepub fn maybe_index_text(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
pub fn maybe_index_text(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
Sourcepub fn modified_at(
self,
value: impl Into<String>,
) -> PassportBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
pub fn modified_at(
self,
value: impl Into<String>,
) -> PassportBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
Sourcepub fn maybe_modified_at(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
pub fn maybe_modified_at(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
Sourcepub fn names_mentioned(
self,
value: impl Into<String>,
) -> PassportBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
pub fn names_mentioned(
self,
value: impl Into<String>,
) -> PassportBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
Sourcepub fn maybe_names_mentioned(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
pub fn maybe_names_mentioned(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
Sourcepub fn number(self, value: impl Into<String>) -> PassportBuilder<SetNumber<S>>where
S::Number: IsUnset,
pub fn number(self, value: impl Into<String>) -> PassportBuilder<SetNumber<S>>where
S::Number: IsUnset,
Required.
Property: Document number
Sourcepub fn passport_number(
self,
value: impl Into<String>,
) -> PassportBuilder<SetPassportNumber<S>>where
S::PassportNumber: IsUnset,
pub fn passport_number(
self,
value: impl Into<String>,
) -> PassportBuilder<SetPassportNumber<S>>where
S::PassportNumber: IsUnset,
Sourcepub fn maybe_passport_number(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetPassportNumber<S>>where
S::PassportNumber: IsUnset,
pub fn maybe_passport_number(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetPassportNumber<S>>where
S::PassportNumber: IsUnset,
Sourcepub fn personal_number(
self,
value: impl Into<String>,
) -> PassportBuilder<SetPersonalNumber<S>>where
S::PersonalNumber: IsUnset,
pub fn personal_number(
self,
value: impl Into<String>,
) -> PassportBuilder<SetPersonalNumber<S>>where
S::PersonalNumber: IsUnset,
Sourcepub fn maybe_personal_number(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetPersonalNumber<S>>where
S::PersonalNumber: IsUnset,
pub fn maybe_personal_number(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetPersonalNumber<S>>where
S::PersonalNumber: IsUnset,
Sourcepub fn proof(self, value: impl Into<String>) -> PassportBuilder<SetProof<S>>where
S::Proof: IsUnset,
pub fn proof(self, value: impl Into<String>) -> PassportBuilder<SetProof<S>>where
S::Proof: IsUnset,
Sourcepub fn maybe_proof(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetProof<S>>where
S::Proof: IsUnset,
pub fn maybe_proof(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetProof<S>>where
S::Proof: IsUnset,
Sourcepub fn publisher(
self,
value: impl Into<String>,
) -> PassportBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
pub fn publisher(
self,
value: impl Into<String>,
) -> PassportBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
Sourcepub fn maybe_publisher(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
pub fn maybe_publisher(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
Sourcepub fn publisher_url(
self,
value: impl Into<String>,
) -> PassportBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
pub fn publisher_url(
self,
value: impl Into<String>,
) -> PassportBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
Sourcepub fn maybe_publisher_url(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
pub fn maybe_publisher_url(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
Sourcepub fn record_id(
self,
value: impl Into<String>,
) -> PassportBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
pub fn record_id(
self,
value: impl Into<String>,
) -> PassportBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
Sourcepub fn maybe_record_id(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
pub fn maybe_record_id(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
Sourcepub fn retrieved_at(
self,
value: impl Into<String>,
) -> PassportBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
pub fn retrieved_at(
self,
value: impl Into<String>,
) -> PassportBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
Sourcepub fn maybe_retrieved_at(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
pub fn maybe_retrieved_at(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
Sourcepub fn source_url(
self,
value: impl Into<String>,
) -> PassportBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
pub fn source_url(
self,
value: impl Into<String>,
) -> PassportBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
Sourcepub fn maybe_source_url(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
pub fn maybe_source_url(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
Sourcepub fn start_date(
self,
value: impl Into<String>,
) -> PassportBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
pub fn start_date(
self,
value: impl Into<String>,
) -> PassportBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
Sourcepub fn maybe_start_date(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
pub fn maybe_start_date(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
Sourcepub fn summary(self, value: impl Into<String>) -> PassportBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn summary(self, value: impl Into<String>) -> PassportBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Sourcepub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Sourcepub fn surname(self, value: impl Into<String>) -> PassportBuilder<SetSurname<S>>where
S::Surname: IsUnset,
pub fn surname(self, value: impl Into<String>) -> PassportBuilder<SetSurname<S>>where
S::Surname: IsUnset,
Sourcepub fn maybe_surname(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetSurname<S>>where
S::Surname: IsUnset,
pub fn maybe_surname(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetSurname<S>>where
S::Surname: IsUnset,
Sourcepub fn type_(self, value: impl Into<String>) -> PassportBuilder<SetType<S>>where
S::Type: IsUnset,
pub fn type_(self, value: impl Into<String>) -> PassportBuilder<SetType<S>>where
S::Type: IsUnset,
Sourcepub fn maybe_type_(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetType<S>>where
S::Type: IsUnset,
pub fn maybe_type_(
self,
value: Option<impl Into<String>>,
) -> PassportBuilder<SetType<S>>where
S::Type: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for PassportBuilder<S>
impl<S> RefUnwindSafe for PassportBuilder<S>
impl<S> Send for PassportBuilder<S>
impl<S> Sync for PassportBuilder<S>
impl<S> Unpin for PassportBuilder<S>
impl<S> UnsafeUnpin for PassportBuilder<S>
impl<S> UnwindSafe for PassportBuilder<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