Enum snapps_txn_reference_impl::party::SetOrKeep[][src]

pub enum SetOrKeep<T> {
    Set(T),
    Keep,
}
Expand description

The SetOrKeep<T> type is an enum type parameterised by a type T, and determines whether a party update affects a particular field of the account state.

Variants

Set(T)

Tuple Fields

0: T

Update the account state with a new value.

Keep

Keep the existing value.

Implementations

Helper function to transform the value inside a SetOrKeep::Set to a value of a different type, using the given function.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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.

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.