pub struct VaultAttestation {
pub action: VaultAction,
pub timestamp: u64,
pub amount: u64,
pub duration_days: Option<u16>,
pub held_to_maturity: bool,
}Expand description
Vault activity attestation (from /api/vault/stack, etc.)
Fields§
§action: VaultAction§timestamp: u64§amount: u64§duration_days: Option<u16>§held_to_maturity: boolTrait Implementations§
Source§impl Attestation for VaultAttestation
impl Attestation for VaultAttestation
Source§fn layer(&self) -> CaptureLayer
fn layer(&self) -> CaptureLayer
The capture layer this attestation belongs to
Source§fn is_positive(&self) -> bool
fn is_positive(&self) -> bool
Whether this was a successful/positive event
Source§fn metadata(&self) -> Option<&AttestationMetadata>
fn metadata(&self) -> Option<&AttestationMetadata>
Optional metadata for specialized scoring
Source§impl Clone for VaultAttestation
impl Clone for VaultAttestation
Source§fn clone(&self) -> VaultAttestation
fn clone(&self) -> VaultAttestation
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 moreAuto Trait Implementations§
impl Freeze for VaultAttestation
impl RefUnwindSafe for VaultAttestation
impl Send for VaultAttestation
impl Sync for VaultAttestation
impl Unpin for VaultAttestation
impl UnsafeUnpin for VaultAttestation
impl UnwindSafe for VaultAttestation
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.