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