pub struct AddCustomFieldKeyV1Body {
pub enforce_uniqueness: bool,
pub entity: AddCustomFieldKeyV1BodyEntity,
pub key: String,
}Expand description
AddCustomFieldKeyV1Body
JSON schema
{
"type": "object",
"required": [
"enforce_uniqueness",
"entity",
"key"
],
"properties": {
"enforce_uniqueness": {
"type": "boolean"
},
"entity": {
"type": "string",
"enum": [
"alert",
"billable_metric",
"charge",
"commit",
"contract_credit",
"contract_product",
"contract",
"customer",
"discount",
"invoice",
"professional_service",
"product",
"rate_card",
"scheduled_charge",
"subscription",
"package_commit",
"package_credit",
"package_subscription",
"package_scheduled_charge"
],
"x-mint-enum": {
"professional_service": [
"client_id:e3147d6d-4101-4cd1-9888-ce3afeeac5b2"
]
}
},
"key": {
"type": "string"
}
}
}Fields§
§enforce_uniqueness: bool§entity: AddCustomFieldKeyV1BodyEntity§key: StringTrait Implementations§
Source§impl Clone for AddCustomFieldKeyV1Body
impl Clone for AddCustomFieldKeyV1Body
Source§fn clone(&self) -> AddCustomFieldKeyV1Body
fn clone(&self) -> AddCustomFieldKeyV1Body
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 Debug for AddCustomFieldKeyV1Body
impl Debug for AddCustomFieldKeyV1Body
Source§impl<'de> Deserialize<'de> for AddCustomFieldKeyV1Body
impl<'de> Deserialize<'de> for AddCustomFieldKeyV1Body
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 AddCustomFieldKeyV1Body
impl RefUnwindSafe for AddCustomFieldKeyV1Body
impl Send for AddCustomFieldKeyV1Body
impl Sync for AddCustomFieldKeyV1Body
impl Unpin for AddCustomFieldKeyV1Body
impl UnsafeUnpin for AddCustomFieldKeyV1Body
impl UnwindSafe for AddCustomFieldKeyV1Body
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