Struct streamflow_sdk::CreateParams
source · [−]#[repr(C)]pub struct CreateParams {Show 14 fields
pub start_time: u64,
pub net_amount_deposited: u64,
pub period: u64,
pub amount_per_period: u64,
pub cliff: u64,
pub cliff_amount: u64,
pub cancelable_by_sender: bool,
pub cancelable_by_recipient: bool,
pub automatic_withdrawal: bool,
pub transferable_by_sender: bool,
pub transferable_by_recipient: bool,
pub can_topup: bool,
pub stream_name: [u8; 64],
pub withdraw_frequency: u64,
}Expand description
Instruction data expected in create instruction
Fields
start_time: u64Timestamp when the tokens start vesting
net_amount_deposited: u64Deposited amount of tokens
period: u64Time step (period) in seconds per which the vesting/release occurs
amount_per_period: u64Amount released per period. Combined with period, we get a release rate.
cliff: u64Vesting contract “cliff” timestamp
cliff_amount: u64Amount unlocked at the “cliff” timestamp
cancelable_by_sender: boolWhether or not a stream can be canceled by a sender
cancelable_by_recipient: boolWhether or not a stream can be canceled by a recipient
automatic_withdrawal: boolWhether or not a 3rd party can initiate withdraw in the name of recipient
transferable_by_sender: boolWhether or not the sender can transfer the stream
transferable_by_recipient: boolWhether or not the recipient can transfer the stream
can_topup: boolWhether topup is enabled
stream_name: [u8; 64]The name of this stream
withdraw_frequency: u64Withdraw frequency
Trait Implementations
sourceimpl BorshDeserialize for CreateParams where
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
[u8; 64]: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for CreateParams where
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
bool: BorshDeserialize,
[u8; 64]: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSerialize for CreateParams where
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
[u8; 64]: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for CreateParams where
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
bool: BorshSerialize,
[u8; 64]: BorshSerialize,
u64: BorshSerialize,
sourceimpl Clone for CreateParams
impl Clone for CreateParams
sourcefn clone(&self) -> CreateParams
fn clone(&self) -> CreateParams
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for CreateParams
impl Send for CreateParams
impl Sync for CreateParams
impl Unpin for CreateParams
impl UnwindSafe for CreateParams
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more