pub struct ClaimableBalanceId(/* private fields */);Implementations§
Source§impl ClaimableBalanceId
impl ClaimableBalanceId
Sourcepub fn new(hash: Vec<u8>) -> Result<ClaimableBalanceId>
pub fn new(hash: Vec<u8>) -> Result<ClaimableBalanceId>
Returns a new claimable balance id, or Error if the hash length is not 32 bytes.
Sourcepub fn to_xdr(&self) -> ClaimableBalanceId
pub fn to_xdr(&self) -> ClaimableBalanceId
Returns the xdr object.
Sourcepub fn from_xdr(x: &ClaimableBalanceId) -> Result<ClaimableBalanceId>
pub fn from_xdr(x: &ClaimableBalanceId) -> Result<ClaimableBalanceId>
Creates from the xdr object.
Trait Implementations§
Source§impl Clone for ClaimableBalanceId
impl Clone for ClaimableBalanceId
Source§fn clone(&self) -> ClaimableBalanceId
fn clone(&self) -> ClaimableBalanceId
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 ClaimableBalanceId
impl Debug for ClaimableBalanceId
Source§impl PartialEq for ClaimableBalanceId
impl PartialEq for ClaimableBalanceId
impl Eq for ClaimableBalanceId
impl StructuralPartialEq for ClaimableBalanceId
Auto Trait Implementations§
impl Freeze for ClaimableBalanceId
impl RefUnwindSafe for ClaimableBalanceId
impl Send for ClaimableBalanceId
impl Sync for ClaimableBalanceId
impl Unpin for ClaimableBalanceId
impl UnwindSafe for ClaimableBalanceId
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