pub struct UpdateProviderAccountRequest {
pub alert_threshold: Option<f64>,
pub display_name: Option<String>,
pub enabled: Option<bool>,
pub expires_at: Option<DateTime<Utc>>,
pub max_concurrency: Option<i32>,
pub plan: Option<String>,
pub priority: Option<i32>,
pub tags: Option<Vec<String>>,
pub token: Option<String>,
}Expand description
Request body to update a Provider Account. All fields optional; name
and kind are immutable.
JSON schema
{
"description": "Request body to update a Provider Account. All fields optional; `name`\nand `kind` are immutable.",
"type": "object",
"properties": {
"alert_threshold": {
"description": "New alert threshold in `(0, 1]`.",
"type": [
"number",
"null"
],
"format": "double"
},
"display_name": {
"description": "New display name.",
"type": [
"string",
"null"
]
},
"enabled": {
"description": "Enable or disable.",
"type": [
"boolean",
"null"
]
},
"expires_at": {
"description": "New expiry of the credential.",
"type": [
"string",
"null"
],
"format": "date-time"
},
"max_concurrency": {
"description": "New max concurrency; `null` removes the limit.",
"type": [
"integer",
"null"
],
"format": "int32",
"minimum": 0.0
},
"plan": {
"description": "New plan; `null` clears it.",
"type": [
"string",
"null"
]
},
"priority": {
"description": "New priority.",
"type": [
"integer",
"null"
],
"format": "int32"
},
"tags": {
"description": "New tags (replaces the list).",
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"token": {
"description": "Replacement credential, write-only. Checked against the provider.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
}
```ignore
</details>Fields§
§alert_threshold: Option<f64>New alert threshold in (0, 1].
display_name: Option<String>New display name.
enabled: Option<bool>Enable or disable.
expires_at: Option<DateTime<Utc>>New expiry of the credential.
max_concurrency: Option<i32>New max concurrency; null removes the limit.
plan: Option<String>New plan; null clears it.
priority: Option<i32>New priority.
New tags (replaces the list).
token: Option<String>Replacement credential, write-only. Checked against the provider.
Implementations§
Trait Implementations§
Source§impl Clone for UpdateProviderAccountRequest
impl Clone for UpdateProviderAccountRequest
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 From<UpdateProviderAccountRequest> for UpdateProviderAccountRequest
impl From<UpdateProviderAccountRequest> for UpdateProviderAccountRequest
Source§fn from(value: UpdateProviderAccountRequest) -> Self
fn from(value: UpdateProviderAccountRequest) -> Self
Converts to this type from the input type.
Source§impl TryFrom<UpdateProviderAccountRequest> for UpdateProviderAccountRequest
impl TryFrom<UpdateProviderAccountRequest> for UpdateProviderAccountRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(
value: UpdateProviderAccountRequest,
) -> Result<Self, ConversionError>
fn try_from( value: UpdateProviderAccountRequest, ) -> Result<Self, ConversionError>
Performs the conversion.
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