pub struct UpdateMeterParams {
pub metadata: HashMap<String, String>,
pub name: Option<String>,
pub filter: Option<MeterFilter>,
pub aggregation: Option<MeterAggregation>,
}Fields§
§metadata: HashMap<String, String>Key-value object allowing you to store additional information.
name: Option<String>The name of the meter. Will be shown on customer’s invoices and usage.
Minimum length: 3
filter: Option<MeterFilter>The filter to apply on events that’ll be used to calculate the meter.
aggregation: Option<MeterAggregation>The aggregation to apply on the filtered events to calculate the meter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UpdateMeterParams
impl<'de> Deserialize<'de> for UpdateMeterParams
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
Auto Trait Implementations§
impl Freeze for UpdateMeterParams
impl RefUnwindSafe for UpdateMeterParams
impl Send for UpdateMeterParams
impl Sync for UpdateMeterParams
impl Unpin for UpdateMeterParams
impl UnwindSafe for UpdateMeterParams
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