pub struct DbPaymentV2 {
pub id: String,
pub kind: Option<Cow<'static, str>>,
pub direction: Option<Cow<'static, str>>,
pub amount: Option<Amount>,
pub fee: Option<Amount>,
pub status: Cow<'static, str>,
pub data: Vec<u8>,
pub version: i16,
pub created_at: i64,
pub updated_at: i64,
}Expand description
An encrypted payment, as represented in the DB.
Fields§
§id: String§kind: Option<Cow<'static, str>>§direction: Option<Cow<'static, str>>§amount: Option<Amount>§fee: Option<Amount>§status: Cow<'static, str>§data: Vec<u8>§version: i16§created_at: i64§updated_at: i64Implementations§
Source§impl DbPaymentV2
impl DbPaymentV2
pub fn from_v1(v1: DbPaymentV1, updated_at: i64) -> DbPaymentV2
Trait Implementations§
Source§impl Clone for DbPaymentV2
impl Clone for DbPaymentV2
Source§fn clone(&self) -> DbPaymentV2
fn clone(&self) -> DbPaymentV2
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 DbPaymentV2
impl Debug for DbPaymentV2
Source§impl<'de> Deserialize<'de> for DbPaymentV2
impl<'de> Deserialize<'de> for DbPaymentV2
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DbPaymentV2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DbPaymentV2, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<DbPaymentV2> for DbPaymentV1
impl From<DbPaymentV2> for DbPaymentV1
Source§fn from(v2: DbPaymentV2) -> DbPaymentV1
fn from(v2: DbPaymentV2) -> DbPaymentV1
Converts to this type from the input type.
Source§impl PartialEq for DbPaymentV2
impl PartialEq for DbPaymentV2
Source§impl Serialize for DbPaymentV2
impl Serialize for DbPaymentV2
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for DbPaymentV2
impl StructuralPartialEq for DbPaymentV2
Auto Trait Implementations§
impl Freeze for DbPaymentV2
impl RefUnwindSafe for DbPaymentV2
impl Send for DbPaymentV2
impl Sync for DbPaymentV2
impl Unpin for DbPaymentV2
impl UnsafeUnpin for DbPaymentV2
impl UnwindSafe for DbPaymentV2
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.