#[repr(C)]pub struct StreamFlow {
pub start_time: u64,
pub end_time: u64,
pub amount: u64,
pub withdrawn: u64,
pub sender: [u8; 32],
pub recipient: [u8; 32],
}
Expand description
StreamFlow is the struct containing all our necessary metadata.
Fields§
§start_time: u64
Timestamp when the funds start unlocking
end_time: u64
Timestamp when all funds should be unlocked
amount: u64
Amount of funds locked
withdrawn: u64
Amount of funds withdrawn
sender: [u8; 32]
Pubkey of the program initializer
recipient: [u8; 32]
Pubkey of the funds’ recipient
Auto Trait Implementations§
impl Freeze for StreamFlow
impl RefUnwindSafe for StreamFlow
impl Send for StreamFlow
impl Sync for StreamFlow
impl Unpin for StreamFlow
impl UnwindSafe for StreamFlow
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> 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 more