pub struct MeteredInput {
pub line_items: Vec<MeteredInputLineItemsItem>,
pub subject: MeteredInputSubject,
}Expand description
MeteredInput
JSON schema
{
"type": "object",
"required": [
"lineItems",
"subject"
],
"properties": {
"lineItems": {
"type": "array",
"items": {
"type": "object",
"required": [
"key",
"quantity",
"unit",
"unitPriceUsd"
],
"properties": {
"key": {
"type": "string",
"minLength": 1
},
"quantity": {
"type": "number",
"exclusiveMinimum": 0.0
},
"unit": {
"type": "string",
"minLength": 1
},
"unitPriceUsd": {
"type": "number",
"exclusiveMinimum": 0.0
}
}
},
"minItems": 1
},
"subject": {
"type": "string",
"minLength": 1
}
}
}Fields§
§line_items: Vec<MeteredInputLineItemsItem>§subject: MeteredInputSubjectImplementations§
Source§impl MeteredInput
impl MeteredInput
pub fn builder() -> MeteredInput
Trait Implementations§
Source§impl Clone for MeteredInput
impl Clone for MeteredInput
Source§fn clone(&self) -> MeteredInput
fn clone(&self) -> MeteredInput
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 MeteredInput
impl Debug for MeteredInput
Source§impl<'de> Deserialize<'de> for MeteredInput
impl<'de> Deserialize<'de> for MeteredInput
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<MeteredInput> for MeteredInput
impl From<MeteredInput> for MeteredInput
Source§fn from(value: MeteredInput) -> Self
fn from(value: MeteredInput) -> Self
Converts to this type from the input type.
Source§impl Serialize for MeteredInput
impl Serialize for MeteredInput
Source§impl TryFrom<MeteredInput> for MeteredInput
impl TryFrom<MeteredInput> for MeteredInput
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: MeteredInput) -> Result<Self, ConversionError>
fn try_from(value: MeteredInput) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for MeteredInput
impl RefUnwindSafe for MeteredInput
impl Send for MeteredInput
impl Sync for MeteredInput
impl Unpin for MeteredInput
impl UnsafeUnpin for MeteredInput
impl UnwindSafe for MeteredInput
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