pub struct TerminalBuilder<S: State = Empty> { /* private fields */ }Available on crate feature
v2_3_0 only.Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> TerminalBuilder<S>
impl<S: State> TerminalBuilder<S>
Sourcepub fn build(self) -> Terminalwhere
S: IsComplete,
pub fn build(self) -> Terminalwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn terminal_id(
self,
value: impl Into<CiString<36>>,
) -> TerminalBuilder<SetTerminalId<S>>where
S::TerminalId: IsUnset,
pub fn terminal_id(
self,
value: impl Into<CiString<36>>,
) -> TerminalBuilder<SetTerminalId<S>>where
S::TerminalId: IsUnset,
Required.
Unique ID that identifies a terminal.
Sourcepub fn customer_reference(
self,
value: impl Into<CiString<36>>,
) -> TerminalBuilder<SetCustomerReference<S>>where
S::CustomerReference: IsUnset,
pub fn customer_reference(
self,
value: impl Into<CiString<36>>,
) -> TerminalBuilder<SetCustomerReference<S>>where
S::CustomerReference: IsUnset,
Sourcepub fn maybe_customer_reference(
self,
value: Option<impl Into<CiString<36>>>,
) -> TerminalBuilder<SetCustomerReference<S>>where
S::CustomerReference: IsUnset,
pub fn maybe_customer_reference(
self,
value: Option<impl Into<CiString<36>>>,
) -> TerminalBuilder<SetCustomerReference<S>>where
S::CustomerReference: IsUnset,
Sourcepub fn party_id(
self,
value: impl Into<PartyId>,
) -> TerminalBuilder<SetPartyId<S>>where
S::PartyId: IsUnset,
pub fn party_id(
self,
value: impl Into<PartyId>,
) -> TerminalBuilder<SetPartyId<S>>where
S::PartyId: IsUnset,
Sourcepub fn maybe_party_id(
self,
value: Option<impl Into<PartyId>>,
) -> TerminalBuilder<SetPartyId<S>>where
S::PartyId: IsUnset,
pub fn maybe_party_id(
self,
value: Option<impl Into<PartyId>>,
) -> TerminalBuilder<SetPartyId<S>>where
S::PartyId: IsUnset,
Sourcepub fn country_code(
self,
value: impl Into<CountryCode>,
) -> TerminalBuilder<SetCountryCode<S>>where
S::CountryCode: IsUnset,
pub fn country_code(
self,
value: impl Into<CountryCode>,
) -> TerminalBuilder<SetCountryCode<S>>where
S::CountryCode: IsUnset,
Sourcepub fn maybe_country_code(
self,
value: Option<impl Into<CountryCode>>,
) -> TerminalBuilder<SetCountryCode<S>>where
S::CountryCode: IsUnset,
pub fn maybe_country_code(
self,
value: Option<impl Into<CountryCode>>,
) -> TerminalBuilder<SetCountryCode<S>>where
S::CountryCode: IsUnset,
Sourcepub fn address(
self,
value: impl Into<CiString<45>>,
) -> TerminalBuilder<SetAddress<S>>where
S::Address: IsUnset,
pub fn address(
self,
value: impl Into<CiString<45>>,
) -> TerminalBuilder<SetAddress<S>>where
S::Address: IsUnset,
Sourcepub fn maybe_address(
self,
value: Option<impl Into<CiString<45>>>,
) -> TerminalBuilder<SetAddress<S>>where
S::Address: IsUnset,
pub fn maybe_address(
self,
value: Option<impl Into<CiString<45>>>,
) -> TerminalBuilder<SetAddress<S>>where
S::Address: IsUnset,
Sourcepub fn city(self, value: impl Into<CiString<45>>) -> TerminalBuilder<SetCity<S>>where
S::City: IsUnset,
pub fn city(self, value: impl Into<CiString<45>>) -> TerminalBuilder<SetCity<S>>where
S::City: IsUnset,
Sourcepub fn maybe_city(
self,
value: Option<impl Into<CiString<45>>>,
) -> TerminalBuilder<SetCity<S>>where
S::City: IsUnset,
pub fn maybe_city(
self,
value: Option<impl Into<CiString<45>>>,
) -> TerminalBuilder<SetCity<S>>where
S::City: IsUnset,
Sourcepub fn postal_code(
self,
value: impl Into<CiString<10>>,
) -> TerminalBuilder<SetPostalCode<S>>where
S::PostalCode: IsUnset,
pub fn postal_code(
self,
value: impl Into<CiString<10>>,
) -> TerminalBuilder<SetPostalCode<S>>where
S::PostalCode: IsUnset,
Sourcepub fn maybe_postal_code(
self,
value: Option<impl Into<CiString<10>>>,
) -> TerminalBuilder<SetPostalCode<S>>where
S::PostalCode: IsUnset,
pub fn maybe_postal_code(
self,
value: Option<impl Into<CiString<10>>>,
) -> TerminalBuilder<SetPostalCode<S>>where
S::PostalCode: IsUnset,
Sourcepub fn state(
self,
value: impl Into<CiString<20>>,
) -> TerminalBuilder<SetState<S>>where
S::State: IsUnset,
pub fn state(
self,
value: impl Into<CiString<20>>,
) -> TerminalBuilder<SetState<S>>where
S::State: IsUnset,
Sourcepub fn maybe_state(
self,
value: Option<impl Into<CiString<20>>>,
) -> TerminalBuilder<SetState<S>>where
S::State: IsUnset,
pub fn maybe_state(
self,
value: Option<impl Into<CiString<20>>>,
) -> TerminalBuilder<SetState<S>>where
S::State: IsUnset,
Sourcepub fn country(
self,
value: impl Into<CiString<3>>,
) -> TerminalBuilder<SetCountry<S>>where
S::Country: IsUnset,
pub fn country(
self,
value: impl Into<CiString<3>>,
) -> TerminalBuilder<SetCountry<S>>where
S::Country: IsUnset,
Sourcepub fn maybe_country(
self,
value: Option<impl Into<CiString<3>>>,
) -> TerminalBuilder<SetCountry<S>>where
S::Country: IsUnset,
pub fn maybe_country(
self,
value: Option<impl Into<CiString<3>>>,
) -> TerminalBuilder<SetCountry<S>>where
S::Country: IsUnset,
Sourcepub fn coordinates(
self,
value: impl Into<GeoLocation>,
) -> TerminalBuilder<SetCoordinates<S>>where
S::Coordinates: IsUnset,
pub fn coordinates(
self,
value: impl Into<GeoLocation>,
) -> TerminalBuilder<SetCoordinates<S>>where
S::Coordinates: IsUnset,
Sourcepub fn maybe_coordinates(
self,
value: Option<impl Into<GeoLocation>>,
) -> TerminalBuilder<SetCoordinates<S>>where
S::Coordinates: IsUnset,
pub fn maybe_coordinates(
self,
value: Option<impl Into<GeoLocation>>,
) -> TerminalBuilder<SetCoordinates<S>>where
S::Coordinates: IsUnset,
Sourcepub fn invoice_base_url(
self,
value: impl Into<Url>,
) -> TerminalBuilder<SetInvoiceBaseUrl<S>>where
S::InvoiceBaseUrl: IsUnset,
pub fn invoice_base_url(
self,
value: impl Into<Url>,
) -> TerminalBuilder<SetInvoiceBaseUrl<S>>where
S::InvoiceBaseUrl: IsUnset,
Optional (Some / Option setters). Base URL of the downloadable invoice.
The full URL is this base plus the session’s authorization_reference; see
InvoiceCreator::Cpo.
Sourcepub fn maybe_invoice_base_url(
self,
value: Option<impl Into<Url>>,
) -> TerminalBuilder<SetInvoiceBaseUrl<S>>where
S::InvoiceBaseUrl: IsUnset,
pub fn maybe_invoice_base_url(
self,
value: Option<impl Into<Url>>,
) -> TerminalBuilder<SetInvoiceBaseUrl<S>>where
S::InvoiceBaseUrl: IsUnset,
Optional (Some / Option setters). Base URL of the downloadable invoice.
The full URL is this base plus the session’s authorization_reference; see
InvoiceCreator::Cpo.
Sourcepub fn invoice_creator(
self,
value: impl Into<InvoiceCreator>,
) -> TerminalBuilder<SetInvoiceCreator<S>>where
S::InvoiceCreator: IsUnset,
pub fn invoice_creator(
self,
value: impl Into<InvoiceCreator>,
) -> TerminalBuilder<SetInvoiceCreator<S>>where
S::InvoiceCreator: IsUnset,
Sourcepub fn maybe_invoice_creator(
self,
value: Option<impl Into<InvoiceCreator>>,
) -> TerminalBuilder<SetInvoiceCreator<S>>where
S::InvoiceCreator: IsUnset,
pub fn maybe_invoice_creator(
self,
value: Option<impl Into<InvoiceCreator>>,
) -> TerminalBuilder<SetInvoiceCreator<S>>where
S::InvoiceCreator: IsUnset,
Sourcepub fn reference(
self,
value: impl Into<CiString<36>>,
) -> TerminalBuilder<SetReference<S>>where
S::Reference: IsUnset,
pub fn reference(
self,
value: impl Into<CiString<36>>,
) -> TerminalBuilder<SetReference<S>>where
S::Reference: IsUnset,
Sourcepub fn maybe_reference(
self,
value: Option<impl Into<CiString<36>>>,
) -> TerminalBuilder<SetReference<S>>where
S::Reference: IsUnset,
pub fn maybe_reference(
self,
value: Option<impl Into<CiString<36>>>,
) -> TerminalBuilder<SetReference<S>>where
S::Reference: IsUnset,
Sourcepub fn location_ids(
self,
value: impl Into<Vec<CiString<36>>>,
) -> TerminalBuilder<SetLocationIds<S>>where
S::LocationIds: IsUnset,
pub fn location_ids(
self,
value: impl Into<Vec<CiString<36>>>,
) -> TerminalBuilder<SetLocationIds<S>>where
S::LocationIds: IsUnset,
Sourcepub fn maybe_location_ids(
self,
value: Option<impl Into<Vec<CiString<36>>>>,
) -> TerminalBuilder<SetLocationIds<S>>where
S::LocationIds: IsUnset,
pub fn maybe_location_ids(
self,
value: Option<impl Into<Vec<CiString<36>>>>,
) -> TerminalBuilder<SetLocationIds<S>>where
S::LocationIds: IsUnset,
Sourcepub fn evse_uids(
self,
value: impl Into<Vec<CiString<36>>>,
) -> TerminalBuilder<SetEvseUids<S>>where
S::EvseUids: IsUnset,
pub fn evse_uids(
self,
value: impl Into<Vec<CiString<36>>>,
) -> TerminalBuilder<SetEvseUids<S>>where
S::EvseUids: IsUnset,
Sourcepub fn maybe_evse_uids(
self,
value: Option<impl Into<Vec<CiString<36>>>>,
) -> TerminalBuilder<SetEvseUids<S>>where
S::EvseUids: IsUnset,
pub fn maybe_evse_uids(
self,
value: Option<impl Into<Vec<CiString<36>>>>,
) -> TerminalBuilder<SetEvseUids<S>>where
S::EvseUids: IsUnset,
Sourcepub fn last_updated(
self,
value: impl Into<DateTime>,
) -> TerminalBuilder<SetLastUpdated<S>>where
S::LastUpdated: IsUnset,
pub fn last_updated(
self,
value: impl Into<DateTime>,
) -> TerminalBuilder<SetLastUpdated<S>>where
S::LastUpdated: IsUnset,
Required.
Timestamp when this Terminal was last updated (or created).
Sourcepub fn extensions(
self,
value: impl Into<Extensions>,
) -> TerminalBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn extensions(
self,
value: impl Into<Extensions>,
) -> TerminalBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Sourcepub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> TerminalBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
pub fn maybe_extensions(
self,
value: Option<impl Into<Extensions>>,
) -> TerminalBuilder<SetExtensions<S>>where
S::Extensions: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for TerminalBuilder<S>
impl<S> RefUnwindSafe for TerminalBuilder<S>
impl<S> Send for TerminalBuilder<S>
impl<S> Sync for TerminalBuilder<S>
impl<S> Unpin for TerminalBuilder<S>
impl<S> UnsafeUnpin for TerminalBuilder<S>
impl<S> UnwindSafe for TerminalBuilder<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