pub struct ManageSellOfferOperation { /* private fields */ }

Implementations§

source§

impl ManageSellOfferOperation

source

pub fn source_account(&self) -> &Option<MuxedAccount>

Retrieves the operation source account.

source

pub fn source_account_mut(&mut self) -> &mut Option<MuxedAccount>

Retrieves a reference to the operation source account.

source

pub fn selling(&self) -> &Asset

Retrieves the operation seling asset.

source

pub fn selling_mut(&mut self) -> &mut Asset

Retrieves a mutable reference to the operation seling asset.

source

pub fn buying(&self) -> &Asset

Retrieves the operation buying asset.

source

pub fn buying_mut(&mut self) -> &mut Asset

Retrieves a mutable reference to the operation buying asset.

source

pub fn amount(&self) -> &Stroops

Retrieves the operation amount.

source

pub fn amount_mut(&mut self) -> &mut Stroops

Retrieves a mutable reference to the operation amount.

source

pub fn price(&self) -> &Price

Retrieves the operation price.

source

pub fn price_mut(&mut self) -> &mut Price

Retrieves a mutable reference to the operation price.

source

pub fn offer_id(&self) -> &Option<i64>

Retrieves the operation offer id.

source

pub fn offer_id_mut(&mut self) -> &mut Option<i64>

Retrieves a mutable reference the operation offer id.

source

pub fn to_xdr_operation_body(&self) -> Result<OperationBody>

Returns the xdr operation body.

source

pub fn from_xdr_operation_body( source_account: Option<MuxedAccount>, x: &ManageSellOfferOp ) -> Result<ManageSellOfferOperation>

Creates from the xdr operation body.

Trait Implementations§

source§

impl Clone for ManageSellOfferOperation

source§

fn clone(&self) -> ManageSellOfferOperation

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ManageSellOfferOperation

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for ManageSellOfferOperation

source§

fn eq(&self, other: &ManageSellOfferOperation) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for ManageSellOfferOperation

source§

impl StructuralEq for ManageSellOfferOperation

source§

impl StructuralPartialEq for ManageSellOfferOperation

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.