#[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: u64

Timestamp when the tokens start vesting

net_amount_deposited: u64

Deposited amount of tokens

period: u64

Time step (period) in seconds per which the vesting/release occurs

amount_per_period: u64

Amount released per period. Combined with period, we get a release rate.

cliff: u64

Vesting contract “cliff” timestamp

cliff_amount: u64

Amount unlocked at the “cliff” timestamp

cancelable_by_sender: bool

Whether or not a stream can be canceled by a sender

cancelable_by_recipient: bool

Whether or not a stream can be canceled by a recipient

automatic_withdrawal: bool

Whether or not a 3rd party can initiate withdraw in the name of recipient

transferable_by_sender: bool

Whether or not the sender can transfer the stream

transferable_by_recipient: bool

Whether or not the recipient can transfer the stream

can_topup: bool

Whether topup is enabled

stream_name: [u8; 64]

The name of this stream

withdraw_frequency: u64

Withdraw frequency

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more

Deserialize this instance from a slice of bytes.

Serialize this instance into a vector of bytes.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.