[−][src]Struct stellar_base::account::DataValue
Data associated with a Stellar account.
Implementations
impl DataValue[src]
pub fn from_slice(value: &[u8]) -> Result<DataValue>[src]
Converts a slice of bytes to a DataValue.
Returns Err if the slice is longer than 64 bytes.
pub fn from_base64(encoded: &str) -> Result<DataValue>[src]
Converts bytes encoded as base64 to a DataValue.
Returns Err if the encoded data is longer than 64 bytes.
pub fn as_bytes(&self) -> &[u8][src]
Returns the DataValue content as bytes.
pub fn to_xdr(&self) -> Result<DataValue>[src]
Returns the DataValue xdr object.
pub fn from_xdr(x: &DataValue) -> Result<DataValue>[src]
Creates a DataValue from xdr object.
Trait Implementations
impl Clone for DataValue[src]
impl Debug for DataValue[src]
impl Eq for DataValue[src]
impl PartialEq<DataValue> for DataValue[src]
impl StructuralEq for DataValue[src]
impl StructuralPartialEq for DataValue[src]
Auto Trait Implementations
impl RefUnwindSafe for DataValue
impl Send for DataValue
impl Sync for DataValue
impl Unpin for DataValue
impl UnwindSafe for DataValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,