#[repr(C)]
pub struct Fees { pub admin_trade_fee_numerator: u64, pub admin_trade_fee_denominator: u64, pub admin_withdraw_fee_numerator: u64, pub admin_withdraw_fee_denominator: u64, pub trade_fee_numerator: u64, pub trade_fee_denominator: u64, pub withdraw_fee_numerator: u64, pub withdraw_fee_denominator: u64, }
Expand description

Fees struct

Fields

admin_trade_fee_numerator: u64

Admin trade fee numerator

admin_trade_fee_denominator: u64

Admin trade fee denominator

admin_withdraw_fee_numerator: u64

Admin withdraw fee numerator

admin_withdraw_fee_denominator: u64

Admin withdraw fee denominator

trade_fee_numerator: u64

Trade fee numerator

trade_fee_denominator: u64

Trade fee denominator

withdraw_fee_numerator: u64

Withdraw fee numerator

withdraw_fee_denominator: u64

Withdraw fee denominator

Trait Implementations

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

Apply admin trade fee

Apply admin withdraw fee

Compute trade fee from amount

Compute withdraw fee from amount

Compute normalized fee for symmetric/asymmetric deposits/withdraws

The length, in bytes, of the packed representation

Get the packed length

Unpack from slice and check if initialized

Unpack from slice without checking if initialized

Pack into slice

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

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.