pub struct Meter {
pub metadata: HashMap<String, String>,
pub created_at: DateTime<Utc>,
pub modified_at: Option<DateTime<Utc>>,
pub id: Uuid,
pub name: String,
pub filter: MeterFilter,
pub aggregation: MeterAggregation,
pub organization_id: Uuid,
}Fields§
§metadata: HashMap<String, String>§created_at: DateTime<Utc>Creation timestamp of the object.
modified_at: Option<DateTime<Utc>>Last modification timestamp of the object.
id: UuidThe ID of the object.
name: StringThe name of the meter. Will be shown on customer’s invoices and usage.
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.
organization_id: UuidThe ID of the organization owning the meter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meter
impl<'de> Deserialize<'de> for Meter
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 Meter
impl RefUnwindSafe for Meter
impl Send for Meter
impl Sync for Meter
impl Unpin for Meter
impl UnwindSafe for Meter
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