pub enum ProviderIdOrAll {
One(ProviderId),
All,
}Expand description
A ProviderId, or the literal * meaning “every subscribed EMP”.
The pricing pushes (PushPricingProductData, PushEVSEPricing) accept an asterisk in place of
a provider id, for offer-to-all prices. Modelling that as a String invites a CPO to publish
a price to the entire roaming network by typo, so it is a distinct variant instead.
Spec: ProviderIDAsterisk.
Variants§
One(ProviderId)
One specific EMP.
All
Every EMP subscribed to the operator’s service — the literal *.
Implementations§
Trait Implementations§
Source§impl Clone for ProviderIdOrAll
impl Clone for ProviderIdOrAll
Source§impl Debug for ProviderIdOrAll
impl Debug for ProviderIdOrAll
Source§impl<'de> Deserialize<'de> for ProviderIdOrAll
impl<'de> Deserialize<'de> for ProviderIdOrAll
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 ProviderIdOrAll
impl Display for ProviderIdOrAll
impl Eq for ProviderIdOrAll
Source§impl From<ProviderId> for ProviderIdOrAll
impl From<ProviderId> for ProviderIdOrAll
Source§fn from(id: ProviderId) -> Self
fn from(id: ProviderId) -> Self
Converts to this type from the input type.
Source§impl FromStr for ProviderIdOrAll
impl FromStr for ProviderIdOrAll
Source§impl Hash for ProviderIdOrAll
impl Hash for ProviderIdOrAll
Source§impl JsonSchema for ProviderIdOrAll
Available on crate feature schema only.
impl JsonSchema for ProviderIdOrAll
Available on crate feature
schema only.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 ProviderIdOrAll
impl Ord for ProviderIdOrAll
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 ProviderIdOrAll
impl PartialEq for ProviderIdOrAll
Source§impl PartialOrd for ProviderIdOrAll
impl PartialOrd for ProviderIdOrAll
Source§impl Serialize for ProviderIdOrAll
impl Serialize for ProviderIdOrAll
impl StructuralPartialEq for ProviderIdOrAll
Source§impl Validate for ProviderIdOrAll
impl Validate for ProviderIdOrAll
Auto Trait Implementations§
impl Freeze for ProviderIdOrAll
impl RefUnwindSafe for ProviderIdOrAll
impl Send for ProviderIdOrAll
impl Sync for ProviderIdOrAll
impl Unpin for ProviderIdOrAll
impl UnsafeUnpin for ProviderIdOrAll
impl UnwindSafe for ProviderIdOrAll
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.