pub struct DataValue(/* private fields */);Expand description
Data associated with a Stellar account.
Implementations§
Source§impl DataValue
impl DataValue
Sourcepub fn from_slice(value: &[u8]) -> Result<DataValue>
pub fn from_slice(value: &[u8]) -> Result<DataValue>
Converts a slice of bytes to a DataValue.
Returns Err if the slice is longer than 64 bytes.
Sourcepub fn from_base64(encoded: &str) -> Result<DataValue>
pub fn from_base64(encoded: &str) -> Result<DataValue>
Converts bytes encoded as base64 to a DataValue.
Returns Err if the encoded data is longer than 64 bytes.
Trait Implementations§
impl Eq for DataValue
impl StructuralPartialEq for DataValue
Auto Trait Implementations§
impl Freeze for DataValue
impl RefUnwindSafe for DataValue
impl Send for DataValue
impl Sync for DataValue
impl Unpin for DataValue
impl UnwindSafe for DataValue
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