pub struct TransactionCreateRequest {
pub amount: f64,
pub category_guid: Option<String>,
pub currency_code: Option<String>,
pub date: String,
pub description: String,
pub has_been_viewed: Option<bool>,
pub is_hidden: Option<bool>,
pub is_international: Option<bool>,
pub memo: Option<String>,
pub metadata: Option<String>,
pub skip_webhook: Option<bool>,
pub type_: String,
}Expand description
TransactionCreateRequest
JSON schema
{
"required": [
"amount",
"date",
"description",
"type"
],
"properties": {
"amount": {
"examples": [
61.11
],
"type": "number"
},
"category_guid": {
"description": "Unique identifier of the category.",
"examples": [
"CAT-b6d61a19-30a7-e852-2703-bdfb4072289e"
],
"type": "string"
},
"currency_code": {
"examples": [
"USD"
],
"type": "string"
},
"date": {
"examples": [
"2016-10-06"
],
"type": "string"
},
"description": {
"examples": [
"Whole foods"
],
"type": "string"
},
"has_been_viewed": {
"examples": [
false
],
"type": "boolean"
},
"is_hidden": {
"examples": [
false
],
"type": "boolean"
},
"is_international": {
"examples": [
false
],
"type": "boolean"
},
"memo": {
"examples": [
"This is a memo"
],
"type": "string"
},
"metadata": {
"examples": [
"some metadata"
],
"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"
},
"type": {
"description": "The type of transaction, which must be CREDIT or
DEBIT. See Transaction Fields for more information.",
"examples": [
"DEBIT"
],
"type": "string"
}
}
}Fields§
§amount: f64§category_guid: Option<String>Unique identifier of the category.
currency_code: Option<String>§date: String§description: String§has_been_viewed: Option<bool>§is_international: Option<bool>§memo: Option<String>§metadata: Option<String>§skip_webhook: Option<bool>When set to true, this parameter will prevent a webhook from being triggered by the request.
type_: StringThe type of transaction, which must be CREDIT or DEBIT. See Transaction Fields for more information.
Trait Implementations§
Source§impl Clone for TransactionCreateRequest
impl Clone for TransactionCreateRequest
Source§fn clone(&self) -> TransactionCreateRequest
fn clone(&self) -> TransactionCreateRequest
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 TransactionCreateRequest
impl Debug for TransactionCreateRequest
Source§impl<'de> Deserialize<'de> for TransactionCreateRequest
impl<'de> Deserialize<'de> for TransactionCreateRequest
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<&TransactionCreateRequest> for TransactionCreateRequest
impl From<&TransactionCreateRequest> for TransactionCreateRequest
Source§fn from(value: &TransactionCreateRequest) -> Self
fn from(value: &TransactionCreateRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionCreateRequest
impl RefUnwindSafe for TransactionCreateRequest
impl Send for TransactionCreateRequest
impl Sync for TransactionCreateRequest
impl Unpin for TransactionCreateRequest
impl UnwindSafe for TransactionCreateRequest
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