pub struct UpdateAgentRoleCostCapRequest {
pub operator_cap_usd: Option<Decimal>,
}Expand description
Set or clear the operator cap of an agent role.
The field is required and unknown fields are refused: only an explicit
null clears the cap, so {} or a misspelled key cannot raise the
enforced cap back to the code cap.
Fields§
§operator_cap_usd: Option<Decimal>Cap in USD over the role’s period, at least 0; null clears it. It can
only lower the cap declared in code.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UpdateAgentRoleCostCapRequest
impl<'de> Deserialize<'de> for UpdateAgentRoleCostCapRequest
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 UpdateAgentRoleCostCapRequest
impl RefUnwindSafe for UpdateAgentRoleCostCapRequest
impl Send for UpdateAgentRoleCostCapRequest
impl Sync for UpdateAgentRoleCostCapRequest
impl Unpin for UpdateAgentRoleCostCapRequest
impl UnsafeUnpin for UpdateAgentRoleCostCapRequest
impl UnwindSafe for UpdateAgentRoleCostCapRequest
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