pub struct BudgetCreateRequest {
pub amount: Option<i64>,
pub category_guid: String,
pub metadata: Option<String>,
pub parent_guid: String,
pub skip_webhook: Option<bool>,
}Expand description
BudgetCreateRequest
JSON schema
{
"type": "object",
"required": [
"category_guid",
"parent_guid"
],
"properties": {
"amount": {
"description": "Amount of the budget.",
"examples": [
1000
],
"type": "integer"
},
"category_guid": {
"description": "Unique identifier of the category.",
"examples": [
"CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a"
],
"type": "string"
},
"metadata": {
"description": "Additional information a partner can store on the
budget.",
"examples": [
"Additional information"
],
"type": "string"
},
"parent_guid": {
"description": "Unique identifier of the parent budget. This is
only required when creating a budget on a sub-category.",
"examples": [
"BGT-6be44a91-e105-f68a-4770-8c7c0a5c9778"
],
"type": "string"
},
"skip_webhook": {
"description": "When set to true, this parameter will prevent a
webhook from being triggered by the request.",
"examples": [
true
],
"type": "boolean"
}
}
}Fields§
§amount: Option<i64>Amount of the budget.
category_guid: StringUnique identifier of the category.
metadata: Option<String>Additional information a partner can store on the budget.
parent_guid: StringUnique identifier of the parent budget. This is only required when creating a budget on a sub-category.
skip_webhook: Option<bool>When set to true, this parameter will prevent a webhook from being triggered by the request.
Trait Implementations§
Source§impl Clone for BudgetCreateRequest
impl Clone for BudgetCreateRequest
Source§fn clone(&self) -> BudgetCreateRequest
fn clone(&self) -> BudgetCreateRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 BudgetCreateRequest
impl Debug for BudgetCreateRequest
Source§impl<'de> Deserialize<'de> for BudgetCreateRequest
impl<'de> Deserialize<'de> for BudgetCreateRequest
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<&BudgetCreateRequest> for BudgetCreateRequest
impl From<&BudgetCreateRequest> for BudgetCreateRequest
Source§fn from(value: &BudgetCreateRequest) -> Self
fn from(value: &BudgetCreateRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BudgetCreateRequest
impl RefUnwindSafe for BudgetCreateRequest
impl Send for BudgetCreateRequest
impl Sync for BudgetCreateRequest
impl Unpin for BudgetCreateRequest
impl UnwindSafe for BudgetCreateRequest
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