pub struct ProviderAccountUsageUpdatedEvent {
pub account_id: Uuid,
pub name: String,
pub windows: Vec<ProviderAccountWindow>,
pub at: DateTime<Utc>,
}Expand description
Payload of the Event::ProviderAccountUsageUpdated event.
§Examples
use chrono::Utc;
use ironflow_engine::notify::ProviderAccountUsageUpdatedEvent;
use uuid::Uuid;
let payload = ProviderAccountUsageUpdatedEvent {
account_id: Uuid::now_v7(),
name: "perso".to_string(),
windows: Vec::new(),
at: Utc::now(),
};
assert!(payload.windows.is_empty());Fields§
§account_id: UuidAccount identifier.
name: StringAccount name.
windows: Vec<ProviderAccountWindow>Current windows of the account.
at: DateTime<Utc>When the windows were recorded.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ProviderAccountUsageUpdatedEvent
impl<'de> Deserialize<'de> for ProviderAccountUsageUpdatedEvent
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 ProviderAccountUsageUpdatedEvent
impl RefUnwindSafe for ProviderAccountUsageUpdatedEvent
impl Send for ProviderAccountUsageUpdatedEvent
impl Sync for ProviderAccountUsageUpdatedEvent
impl Unpin for ProviderAccountUsageUpdatedEvent
impl UnsafeUnpin for ProviderAccountUsageUpdatedEvent
impl UnwindSafe for ProviderAccountUsageUpdatedEvent
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