pub struct ProviderAccountUpdatedEvent {
pub account_id: Uuid,
pub name: String,
pub change: ProviderAccountChange,
pub at: DateTime<Utc>,
}Expand description
Payload of the Event::ProviderAccountUpdated event.
Never carries the credential.
§Examples
use chrono::Utc;
use ironflow_engine::notify::{ProviderAccountChange, ProviderAccountUpdatedEvent};
use uuid::Uuid;
let payload = ProviderAccountUpdatedEvent {
account_id: Uuid::now_v7(),
name: "perso".to_string(),
change: ProviderAccountChange::Created,
at: Utc::now(),
};
assert_eq!(payload.name, "perso");Fields§
§account_id: UuidAccount identifier.
name: StringAccount name.
change: ProviderAccountChangeWhat changed.
at: DateTime<Utc>When the change happened.
Trait Implementations§
Source§impl Clone for ProviderAccountUpdatedEvent
impl Clone for ProviderAccountUpdatedEvent
Source§impl Debug for ProviderAccountUpdatedEvent
impl Debug for ProviderAccountUpdatedEvent
Source§impl<'de> Deserialize<'de> for ProviderAccountUpdatedEvent
impl<'de> Deserialize<'de> for ProviderAccountUpdatedEvent
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 ProviderAccountUpdatedEvent
impl RefUnwindSafe for ProviderAccountUpdatedEvent
impl Send for ProviderAccountUpdatedEvent
impl Sync for ProviderAccountUpdatedEvent
impl Unpin for ProviderAccountUpdatedEvent
impl UnsafeUnpin for ProviderAccountUpdatedEvent
impl UnwindSafe for ProviderAccountUpdatedEvent
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