WebhookData

Struct WebhookData 

Source
pub struct WebhookData {
Show 37 fields pub id: String, pub created: DateTime<Utc>, pub description: String, pub amount: i64, pub currency: String, pub is_load: bool, pub settled: SettledTimestamp, pub local_amount: i64, pub local_currency: String, pub merchant: Option<Merchant>, pub merchant_feedback_uri: String, pub notes: String, pub metadata: WebhookMetadata, pub category: String, pub updated: DateTime<Utc>, pub account_id: String, pub user_id: String, pub counterparty: CounterpartyOrNone, pub scheme: Scheme, pub dedupe_id: String, pub originator: bool, pub include_in_spending: bool, pub can_be_excluded_from_breakdown: bool, pub can_be_made_subscription: bool, pub can_split_the_bill: bool, pub can_add_to_tab: bool, pub can_match_transactions_in_categorization: bool, pub amount_is_pending: bool, pub parent_account_id: String, pub categories: Option<HashMap<String, i64>>, pub declined: Option<Decline>, pub attachments: (), pub atm_fees_detailed: (), pub fees: HashMap<(), ()>, pub international: (), pub labels: (), pub extra: ExtraValues,
}

Fields§

§id: String§created: DateTime<Utc>§description: String§amount: i64

The amount of money in the transaction, in whole pence (or equivalent for foreign currency)

§currency: String

The ISO 4127 currency code of Self::amount

§is_load: bool§settled: SettledTimestamp§local_amount: i64

The amount of money in the transaction, in whole pence (or equivalent for foreign currency)

§local_currency: String

The ISO 4127 currency code of Self::local_amount

§merchant: Option<Merchant>§merchant_feedback_uri: String§notes: String§metadata: WebhookMetadata§category: String§updated: DateTime<Utc>§account_id: String§user_id: String§counterparty: CounterpartyOrNone§scheme: Scheme§dedupe_id: String§originator: bool§include_in_spending: bool§can_be_excluded_from_breakdown: bool§can_be_made_subscription: bool§can_split_the_bill: bool§can_add_to_tab: bool§can_match_transactions_in_categorization: bool§amount_is_pending: bool§parent_account_id: String§categories: Option<HashMap<String, i64>>§declined: Option<Decline>§attachments: ()§atm_fees_detailed: ()§fees: HashMap<(), ()>§international: ()§labels: ()§extra: ExtraValues

The value had extra fields that weren’t parsed into another field.

Trait Implementations§

Source§

impl Clone for WebhookData

Source§

fn clone(&self) -> WebhookData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WebhookData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for WebhookData

Source§

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 HasExtraData for WebhookData

Available on crate feature decode_everything only.
Source§

fn has_extra_data(&self) -> bool

Recursively check if any extra data is present on this object or any of it’s children.
Source§

impl PartialEq for WebhookData

Source§

fn eq(&self, other: &WebhookData) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for WebhookData

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,