pub enum InvoiceCreator {
Cpo,
Ptp,
}Available on crate feature
v2_3_0 only.Expand description
Which party issues the invoice for an ad-hoc session.
Spec: 2.3.0 §mod_payments_invoice_creator_enum
Variants§
Cpo
The CPO issues the invoice, via invoice_base_url + authorization_reference.
Wire value: CPO
Ptp
The PTP issues the invoice and shows it to the eDriver at the payment terminal.
Wire value: PTP
Implementations§
Source§impl InvoiceCreator
impl InvoiceCreator
Sourcepub const ALL_WIRE: &'static [&'static str]
pub const ALL_WIRE: &'static [&'static str]
Every wire value this enum accepts, in declaration order.
Sourcepub fn from_str_ignore_case(s: &str) -> Option<Self>
pub fn from_str_ignore_case(s: &str) -> Option<Self>
Parses a wire value, ignoring ASCII case.
OCPI enum values are case-sensitive, so this is only for peers known to get the
case wrong; FromStr is the strict version.
Trait Implementations§
Source§impl Clone for InvoiceCreator
impl Clone for InvoiceCreator
Source§fn clone(&self) -> InvoiceCreator
fn clone(&self) -> InvoiceCreator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InvoiceCreator
Source§impl Debug for InvoiceCreator
impl Debug for InvoiceCreator
Source§impl<'de> Deserialize<'de> for InvoiceCreator
impl<'de> Deserialize<'de> for InvoiceCreator
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for InvoiceCreator
impl Display for InvoiceCreator
impl Eq for InvoiceCreator
Source§impl FromStr for InvoiceCreator
impl FromStr for InvoiceCreator
Source§impl Hash for InvoiceCreator
impl Hash for InvoiceCreator
Source§impl JsonSchema for InvoiceCreator
impl JsonSchema for InvoiceCreator
Source§fn json_schema(_g: &mut SchemaGenerator) -> Schema
fn json_schema(_g: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl Ord for InvoiceCreator
impl Ord for InvoiceCreator
Source§fn cmp(&self, other: &InvoiceCreator) -> Ordering
fn cmp(&self, other: &InvoiceCreator) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for InvoiceCreator
impl PartialEq for InvoiceCreator
Source§impl PartialOrd for InvoiceCreator
impl PartialOrd for InvoiceCreator
Source§impl Serialize for InvoiceCreator
impl Serialize for InvoiceCreator
impl StructuralPartialEq for InvoiceCreator
Source§impl Validate for InvoiceCreator
impl Validate for InvoiceCreator
Auto Trait Implementations§
impl Freeze for InvoiceCreator
impl RefUnwindSafe for InvoiceCreator
impl Send for InvoiceCreator
impl Sync for InvoiceCreator
impl Unpin for InvoiceCreator
impl UnsafeUnpin for InvoiceCreator
impl UnwindSafe for InvoiceCreator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.