pub struct Vault {
pub owner: Vec<u8>,
pub bump: u8,
pub spend_limit_per_transaction: u64,
pub spend_limit_per_timeframe: u64,
pub remaining_spend_limit_per_timeframe: u64,
pub next_timeframe_reset_timestamp: u64,
pub timeframe_in_seconds: u64,
}Expand description
Pyra vault account stored in Redis by the indexer.
Contains spend limit configuration and the vault owner.
Fields§
§owner: Vec<u8>Owner public key as raw bytes.
bump: u8§spend_limit_per_transaction: u64§spend_limit_per_timeframe: u64§remaining_spend_limit_per_timeframe: u64§next_timeframe_reset_timestamp: u64§timeframe_in_seconds: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vault
impl<'de> Deserialize<'de> for Vault
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
Auto Trait Implementations§
impl Freeze for Vault
impl RefUnwindSafe for Vault
impl Send for Vault
impl Sync for Vault
impl Unpin for Vault
impl UnsafeUnpin for Vault
impl UnwindSafe for Vault
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