pub struct UpdateProviderAccountRequest {
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 token: Option<String>,
}Expand description
Request body to update a Provider Account. All fields optional; name
and kind are immutable.
Fields§
§display_name: Option<String>New display name.
enabled: Option<bool>Enable or disable.
priority: Option<i32>New priority.
New tags (replaces the list).
max_concurrency: Option<Option<u32>>New max concurrency; null removes the limit.
alert_threshold: Option<f64>New alert threshold in (0, 1].
expires_at: Option<DateTime<Utc>>New expiry of the credential.
plan: Option<Option<String>>New plan; null clears it.
token: Option<String>Replacement credential, write-only. Checked against the provider.
Implementations§
Source§impl UpdateProviderAccountRequest
impl UpdateProviderAccountRequest
Sourcepub fn validate_nested(&self) -> Result<(), String>
pub fn validate_nested(&self) -> Result<(), String>
Check the fields validator cannot express on nested options.
§Errors
Returns a message when max_concurrency is 0 or plan is too long.
Sourcepub fn changed_fields(&self) -> Vec<&'static str>
pub fn changed_fields(&self) -> Vec<&'static str>
Names of the fields present in the request, except the token.
Trait Implementations§
Source§impl Debug for UpdateProviderAccountRequest
impl Debug for UpdateProviderAccountRequest
Source§impl<'de> Deserialize<'de> for UpdateProviderAccountRequest
impl<'de> Deserialize<'de> for UpdateProviderAccountRequest
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<'v_a> ValidateArgs<'v_a> for UpdateProviderAccountRequest
impl<'v_a> ValidateArgs<'v_a> for UpdateProviderAccountRequest
Auto Trait Implementations§
impl Freeze for UpdateProviderAccountRequest
impl RefUnwindSafe for UpdateProviderAccountRequest
impl Send for UpdateProviderAccountRequest
impl Sync for UpdateProviderAccountRequest
impl Unpin for UpdateProviderAccountRequest
impl UnsafeUnpin for UpdateProviderAccountRequest
impl UnwindSafe for UpdateProviderAccountRequest
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