pub struct UpdateConditionSetRequestBody {
pub name: Option<UpdateConditionSetRequestBodyName>,
pub owner: Option<OwnerInput>,
pub owner_id: Option<OwnerIdInput>,
}Expand description
Request body for updating a condition set. At least one field must be
provided. owner and owner_id are mutually exclusive.
JSON schema
{
"title": "UpdateConditionSetRequestBody",
"description": "Request body for updating a condition set. At least one field must be provided. `owner` and `owner_id` are mutually exclusive.",
"type": "object",
"properties": {
"name": {
"description": "Name to assign to condition set.",
"type": "string",
"maxLength": 100,
"minLength": 1
},
"owner": {
"allOf": [
{
"$ref": "#/components/schemas/OwnerInput"
},
{
"description": "New owner of the condition set. Cannot be used together with `owner_id`. Set to `null` to clear the existing owner."
}
]
},
"owner_id": {
"allOf": [
{
"$ref": "#/components/schemas/OwnerIdInput"
},
{
"description": "New key quorum ID to set as the owner of the
condition set. Cannot be used together with `owner`. Set to `null` to
clear the existing owner."
}
]
}
},
"x-stainless-model": "policies.update_condition_set_request_body"
}Fields§
§name: Option<UpdateConditionSetRequestBodyName>Name to assign to condition set.
owner: Option<OwnerInput>§owner_id: Option<OwnerIdInput>Trait Implementations§
Source§impl Clone for UpdateConditionSetRequestBody
impl Clone for UpdateConditionSetRequestBody
Source§fn clone(&self) -> UpdateConditionSetRequestBody
fn clone(&self) -> UpdateConditionSetRequestBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for UpdateConditionSetRequestBody
impl<'de> Deserialize<'de> for UpdateConditionSetRequestBody
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<&UpdateConditionSetRequestBody> for UpdateConditionSetRequestBody
impl From<&UpdateConditionSetRequestBody> for UpdateConditionSetRequestBody
Source§fn from(value: &UpdateConditionSetRequestBody) -> Self
fn from(value: &UpdateConditionSetRequestBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UpdateConditionSetRequestBody
impl RefUnwindSafe for UpdateConditionSetRequestBody
impl Send for UpdateConditionSetRequestBody
impl Sync for UpdateConditionSetRequestBody
impl Unpin for UpdateConditionSetRequestBody
impl UnsafeUnpin for UpdateConditionSetRequestBody
impl UnwindSafe for UpdateConditionSetRequestBody
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