pub struct AllowTrustOperation { /* private fields */ }Implementations§
Source§impl AllowTrustOperation
impl AllowTrustOperation
Sourcepub fn source_account(&self) -> &Option<MuxedAccount>
pub fn source_account(&self) -> &Option<MuxedAccount>
Retrieves the operation source account.
Sourcepub fn source_account_mut(&mut self) -> &mut Option<MuxedAccount>
pub fn source_account_mut(&mut self) -> &mut Option<MuxedAccount>
Retrieves a reference to the operation source account.
Sourcepub fn trustor_mut(&mut self) -> &mut PublicKey
pub fn trustor_mut(&mut self) -> &mut PublicKey
Retrieves a mutable reference to the operation trustor.
Sourcepub fn asset(&self) -> &CreditAssetType
pub fn asset(&self) -> &CreditAssetType
Retrieves the operation asset.
Sourcepub fn asset_mut(&mut self) -> &mut CreditAssetType
pub fn asset_mut(&mut self) -> &mut CreditAssetType
Retrieves a mutable reference to the operation asset.
Retrieves the operation authorize flags.
Retrieves a mutable reference to the operation authorize flags.
Sourcepub fn to_xdr_operation_body(&self) -> Result<OperationBody>
pub fn to_xdr_operation_body(&self) -> Result<OperationBody>
Returns the xdr operation body.
Sourcepub fn from_xdr_operation_body(
source_account: Option<MuxedAccount>,
x: &AllowTrustOp,
) -> Result<AllowTrustOperation>
pub fn from_xdr_operation_body( source_account: Option<MuxedAccount>, x: &AllowTrustOp, ) -> Result<AllowTrustOperation>
Creates from xdr operation body.
Trait Implementations§
Source§impl Clone for AllowTrustOperation
impl Clone for AllowTrustOperation
Source§fn clone(&self) -> AllowTrustOperation
fn clone(&self) -> AllowTrustOperation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AllowTrustOperation
impl Debug for AllowTrustOperation
Source§impl PartialEq for AllowTrustOperation
impl PartialEq for AllowTrustOperation
impl Eq for AllowTrustOperation
impl StructuralPartialEq for AllowTrustOperation
Auto Trait Implementations§
impl Freeze for AllowTrustOperation
impl RefUnwindSafe for AllowTrustOperation
impl Send for AllowTrustOperation
impl Sync for AllowTrustOperation
impl Unpin for AllowTrustOperation
impl UnwindSafe for AllowTrustOperation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more