pub struct ProviderAccountUpdate {
pub display_name: Option<String>,
pub enabled: Option<bool>,
pub priority: Option<i32>,
pub tags: Option<Vec<String>>,
pub max_concurrency: Option<Option<u32>>,
pub alert_threshold: Option<f64>,
pub expires_at: Option<DateTime<Utc>>,
pub plan: Option<Option<String>>,
pub auth_failed_at: Option<Option<DateTime<Utc>>>,
}Expand description
Partial update of a Provider Account. None fields are left unchanged.
§Examples
use ironflow_store::entities::ProviderAccountUpdate;
let update = ProviderAccountUpdate {
enabled: Some(false),
max_concurrency: Some(None),
..ProviderAccountUpdate::default()
};
assert_eq!(update.max_concurrency, Some(None));Fields§
§display_name: Option<String>New display name.
enabled: Option<bool>Enable or disable.
priority: Option<i32>New priority.
New tags (replaces).
max_concurrency: Option<Option<u32>>New max concurrency; Some(None) clears it.
alert_threshold: Option<f64>New alert threshold.
expires_at: Option<DateTime<Utc>>New expiry.
plan: Option<Option<String>>New plan; Some(None) clears it.
auth_failed_at: Option<Option<DateTime<Utc>>>New auth failure mark; Some(None) clears it.
Trait Implementations§
Source§impl Clone for ProviderAccountUpdate
impl Clone for ProviderAccountUpdate
Source§impl Debug for ProviderAccountUpdate
impl Debug for ProviderAccountUpdate
Source§impl Default for ProviderAccountUpdate
impl Default for ProviderAccountUpdate
Source§impl<'de> Deserialize<'de> for ProviderAccountUpdate
impl<'de> Deserialize<'de> for ProviderAccountUpdate
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
Source§impl PartialEq for ProviderAccountUpdate
impl PartialEq for ProviderAccountUpdate
Source§impl Serialize for ProviderAccountUpdate
impl Serialize for ProviderAccountUpdate
impl StructuralPartialEq for ProviderAccountUpdate
Auto Trait Implementations§
impl Freeze for ProviderAccountUpdate
impl RefUnwindSafe for ProviderAccountUpdate
impl Send for ProviderAccountUpdate
impl Sync for ProviderAccountUpdate
impl Unpin for ProviderAccountUpdate
impl UnsafeUnpin for ProviderAccountUpdate
impl UnwindSafe for ProviderAccountUpdate
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