pub struct PriceList {
pub currency: String,
pub amounts_exclude_vat: bool,
pub last_changed: Option<Timestamp>,
pub families: Vec<PriceFamily>,
}Expand description
The price list. Every amount is in EUR, before VAT, which depends on the customer’s country and is added on the invoice.
Fields§
§currency: StringAlways EUR.
amounts_exclude_vat: boolAlways true: every amount is net, before VAT.
last_changed: Option<Timestamp>When a list price was last set, changed, took effect or ended: what a “prices last updated” line shows. Unset only while nothing is priced.
families: Vec<PriceFamily>One entry per product family with a price in effect, in the platform’s
catalog order: compute_instance, network_floating_ip,
network_nat_gateway, network_vpc_egress, network_vpc_ingress,
network_vpc_internal, storage_volume, storage_snapshot,
observability_custom_metric, observability_api_request,
observability_ingested_sample, dns_hosted_zone, dns_query.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PriceList
impl<'de> Deserialize<'de> for PriceList
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for PriceList
impl Message for PriceList
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for PriceList
Auto Trait Implementations§
impl Forget for PriceList
impl Freeze for PriceList
impl Move for PriceList
impl RefUnwindSafe for PriceList
impl Send for PriceList
impl Sync for PriceList
impl Unpin for PriceList
impl UnsafeUnpin for PriceList
impl UnwindSafe for PriceList
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