pub struct PaymentBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> PaymentBuilder<S>
impl<S: State> PaymentBuilder<S>
Sourcepub fn build(self) -> Paymentwhere
S: IsComplete,
pub fn build(self) -> Paymentwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> PaymentBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> PaymentBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn schema(self, value: String) -> PaymentBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn schema(self, value: String) -> PaymentBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn maybe_schema(self, value: Option<String>) -> PaymentBuilder<SetSchema<S>>where
S::Schema: IsUnset,
pub fn maybe_schema(self, value: Option<String>) -> PaymentBuilder<SetSchema<S>>where
S::Schema: IsUnset,
Sourcepub fn aleph_url(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
pub fn aleph_url(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
Sourcepub fn maybe_aleph_url(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
pub fn maybe_aleph_url(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetAlephUrl<S>>where
S::AlephUrl: IsUnset,
Sourcepub fn amount(self, value: f64) -> PaymentBuilder<SetAmount<S>>where
S::Amount: IsUnset,
pub fn amount(self, value: f64) -> PaymentBuilder<SetAmount<S>>where
S::Amount: IsUnset,
Sourcepub fn maybe_amount(self, value: Option<f64>) -> PaymentBuilder<SetAmount<S>>where
S::Amount: IsUnset,
pub fn maybe_amount(self, value: Option<f64>) -> PaymentBuilder<SetAmount<S>>where
S::Amount: IsUnset,
Sourcepub fn amount_eur(self, value: f64) -> PaymentBuilder<SetAmountEur<S>>where
S::AmountEur: IsUnset,
pub fn amount_eur(self, value: f64) -> PaymentBuilder<SetAmountEur<S>>where
S::AmountEur: IsUnset,
Sourcepub fn maybe_amount_eur(
self,
value: Option<f64>,
) -> PaymentBuilder<SetAmountEur<S>>where
S::AmountEur: IsUnset,
pub fn maybe_amount_eur(
self,
value: Option<f64>,
) -> PaymentBuilder<SetAmountEur<S>>where
S::AmountEur: IsUnset,
Sourcepub fn amount_usd(self, value: f64) -> PaymentBuilder<SetAmountUsd<S>>where
S::AmountUsd: IsUnset,
pub fn amount_usd(self, value: f64) -> PaymentBuilder<SetAmountUsd<S>>where
S::AmountUsd: IsUnset,
Sourcepub fn maybe_amount_usd(
self,
value: Option<f64>,
) -> PaymentBuilder<SetAmountUsd<S>>where
S::AmountUsd: IsUnset,
pub fn maybe_amount_usd(
self,
value: Option<f64>,
) -> PaymentBuilder<SetAmountUsd<S>>where
S::AmountUsd: IsUnset,
Sourcepub fn beneficiary(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetBeneficiary<S>>where
S::Beneficiary: IsUnset,
pub fn beneficiary(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetBeneficiary<S>>where
S::Beneficiary: IsUnset,
Required.
Property: Beneficiary
Sourcepub fn beneficiary_account(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetBeneficiaryAccount<S>>where
S::BeneficiaryAccount: IsUnset,
pub fn beneficiary_account(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetBeneficiaryAccount<S>>where
S::BeneficiaryAccount: IsUnset,
Sourcepub fn maybe_beneficiary_account(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetBeneficiaryAccount<S>>where
S::BeneficiaryAccount: IsUnset,
pub fn maybe_beneficiary_account(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetBeneficiaryAccount<S>>where
S::BeneficiaryAccount: IsUnset,
Sourcepub fn contract(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetContract<S>>where
S::Contract: IsUnset,
pub fn contract(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetContract<S>>where
S::Contract: IsUnset,
Sourcepub fn maybe_contract(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetContract<S>>where
S::Contract: IsUnset,
pub fn maybe_contract(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetContract<S>>where
S::Contract: IsUnset,
Sourcepub fn currency(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetCurrency<S>>where
S::Currency: IsUnset,
pub fn currency(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetCurrency<S>>where
S::Currency: IsUnset,
Sourcepub fn maybe_currency(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetCurrency<S>>where
S::Currency: IsUnset,
pub fn maybe_currency(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetCurrency<S>>where
S::Currency: IsUnset,
Sourcepub fn date(self, value: impl Into<String>) -> PaymentBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn date(self, value: impl Into<String>) -> PaymentBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn maybe_date(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetDate<S>>where
S::Date: IsUnset,
pub fn maybe_date(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetDate<S>>where
S::Date: IsUnset,
Sourcepub fn description(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn description(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetDescription<S>>where
S::Description: IsUnset,
pub fn maybe_description(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetDescription<S>>where
S::Description: IsUnset,
Sourcepub fn end_date(self, value: impl Into<String>) -> PaymentBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
pub fn end_date(self, value: impl Into<String>) -> PaymentBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
Sourcepub fn maybe_end_date(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
pub fn maybe_end_date(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetEndDate<S>>where
S::EndDate: IsUnset,
Sourcepub fn index_text(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
pub fn index_text(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
Sourcepub fn maybe_index_text(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
pub fn maybe_index_text(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetIndexText<S>>where
S::IndexText: IsUnset,
Sourcepub fn modified_at(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
pub fn modified_at(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
Sourcepub fn maybe_modified_at(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
pub fn maybe_modified_at(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetModifiedAt<S>>where
S::ModifiedAt: IsUnset,
Sourcepub fn names_mentioned(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
pub fn names_mentioned(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
Sourcepub fn maybe_names_mentioned(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
pub fn maybe_names_mentioned(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetNamesMentioned<S>>where
S::NamesMentioned: IsUnset,
Sourcepub fn payer(self, value: impl Into<String>) -> PaymentBuilder<SetPayer<S>>where
S::Payer: IsUnset,
pub fn payer(self, value: impl Into<String>) -> PaymentBuilder<SetPayer<S>>where
S::Payer: IsUnset,
Required.
Property: Payer
Sourcepub fn payer_account(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetPayerAccount<S>>where
S::PayerAccount: IsUnset,
pub fn payer_account(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetPayerAccount<S>>where
S::PayerAccount: IsUnset,
Sourcepub fn maybe_payer_account(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetPayerAccount<S>>where
S::PayerAccount: IsUnset,
pub fn maybe_payer_account(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetPayerAccount<S>>where
S::PayerAccount: IsUnset,
Sourcepub fn programme(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetProgramme<S>>where
S::Programme: IsUnset,
pub fn programme(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetProgramme<S>>where
S::Programme: IsUnset,
Sourcepub fn maybe_programme(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetProgramme<S>>where
S::Programme: IsUnset,
pub fn maybe_programme(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetProgramme<S>>where
S::Programme: IsUnset,
Sourcepub fn project(self, value: impl Into<String>) -> PaymentBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn project(self, value: impl Into<String>) -> PaymentBuilder<SetProject<S>>where
S::Project: IsUnset,
Sourcepub fn maybe_project(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetProject<S>>where
S::Project: IsUnset,
pub fn maybe_project(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetProject<S>>where
S::Project: IsUnset,
Sourcepub fn proof(self, value: impl Into<String>) -> PaymentBuilder<SetProof<S>>where
S::Proof: IsUnset,
pub fn proof(self, value: impl Into<String>) -> PaymentBuilder<SetProof<S>>where
S::Proof: IsUnset,
Sourcepub fn maybe_proof(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetProof<S>>where
S::Proof: IsUnset,
pub fn maybe_proof(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetProof<S>>where
S::Proof: IsUnset,
Sourcepub fn publisher(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
pub fn publisher(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
Sourcepub fn maybe_publisher(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
pub fn maybe_publisher(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetPublisher<S>>where
S::Publisher: IsUnset,
Sourcepub fn publisher_url(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
pub fn publisher_url(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
Sourcepub fn maybe_publisher_url(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
pub fn maybe_publisher_url(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetPublisherUrl<S>>where
S::PublisherUrl: IsUnset,
Sourcepub fn purpose(self, value: impl Into<String>) -> PaymentBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
pub fn purpose(self, value: impl Into<String>) -> PaymentBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
Sourcepub fn maybe_purpose(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
pub fn maybe_purpose(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetPurpose<S>>where
S::Purpose: IsUnset,
Sourcepub fn record_id(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
pub fn record_id(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
Sourcepub fn maybe_record_id(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
pub fn maybe_record_id(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetRecordId<S>>where
S::RecordId: IsUnset,
Sourcepub fn retrieved_at(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
pub fn retrieved_at(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
Sourcepub fn maybe_retrieved_at(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
pub fn maybe_retrieved_at(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetRetrievedAt<S>>where
S::RetrievedAt: IsUnset,
Sourcepub fn sequence_number(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetSequenceNumber<S>>where
S::SequenceNumber: IsUnset,
pub fn sequence_number(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetSequenceNumber<S>>where
S::SequenceNumber: IsUnset,
Sourcepub fn maybe_sequence_number(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetSequenceNumber<S>>where
S::SequenceNumber: IsUnset,
pub fn maybe_sequence_number(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetSequenceNumber<S>>where
S::SequenceNumber: IsUnset,
Sourcepub fn source_url(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
pub fn source_url(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
Sourcepub fn maybe_source_url(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
pub fn maybe_source_url(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetSourceUrl<S>>where
S::SourceUrl: IsUnset,
Sourcepub fn start_date(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
pub fn start_date(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
Sourcepub fn maybe_start_date(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
pub fn maybe_start_date(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetStartDate<S>>where
S::StartDate: IsUnset,
Sourcepub fn summary(self, value: impl Into<String>) -> PaymentBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn summary(self, value: impl Into<String>) -> PaymentBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Sourcepub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetSummary<S>>where
S::Summary: IsUnset,
pub fn maybe_summary(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetSummary<S>>where
S::Summary: IsUnset,
Sourcepub fn transaction_number(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetTransactionNumber<S>>where
S::TransactionNumber: IsUnset,
pub fn transaction_number(
self,
value: impl Into<String>,
) -> PaymentBuilder<SetTransactionNumber<S>>where
S::TransactionNumber: IsUnset,
Sourcepub fn maybe_transaction_number(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetTransactionNumber<S>>where
S::TransactionNumber: IsUnset,
pub fn maybe_transaction_number(
self,
value: Option<impl Into<String>>,
) -> PaymentBuilder<SetTransactionNumber<S>>where
S::TransactionNumber: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for PaymentBuilder<S>
impl<S> RefUnwindSafe for PaymentBuilder<S>
impl<S> Send for PaymentBuilder<S>
impl<S> Sync for PaymentBuilder<S>
impl<S> Unpin for PaymentBuilder<S>
impl<S> UnsafeUnpin for PaymentBuilder<S>
impl<S> UnwindSafe for PaymentBuilder<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