Struct streamflow_timelock::state::StreamInstruction[][src]

#[repr(C)]
pub struct StreamInstruction { pub start_time: u64, pub end_time: u64, pub deposited_amount: u64, pub total_amount: u64, pub period: u64, pub cliff: u64, pub cliff_amount: u64, }
Expand description

The struct containing instructions for initializing a stream

Fields

start_time: u64

Timestamp when the tokens start vesting

end_time: u64

Timestamp when all tokens are fully vested

deposited_amount: u64

Initially deposited amount of tokens (<= total_amount)

total_amount: u64

Total amount of the tokens in the escrow account if contract is fully vested

period: u64

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

cliff: u64

Vesting contract “cliff” timestamp

cliff_amount: u64

Amount unlocked at the “cliff” timestamp

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

Returns the “default value” for a type. 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)

recently added

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.