pub struct DataLocator {
pub data: String,
pub bytes: Option<Vec<u8>>,
}Expand description
An inline data locator.
Fields§
§data: StringBase64 encoded data (with data://).
bytes: Option<Vec<u8>>The decoded bytes of the data. This must be done manually on the host side.
Trait Implementations§
Source§impl Clone for DataLocator
impl Clone for DataLocator
Source§fn clone(&self) -> DataLocator
fn clone(&self) -> DataLocator
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 DataLocator
impl Debug for DataLocator
Source§impl Default for DataLocator
impl Default for DataLocator
Source§fn default() -> DataLocator
fn default() -> DataLocator
Returns the “default value” for a type. Read more
Source§impl PartialEq for DataLocator
impl PartialEq for DataLocator
impl Eq for DataLocator
impl StructuralPartialEq for DataLocator
Auto Trait Implementations§
impl Freeze for DataLocator
impl RefUnwindSafe for DataLocator
impl Send for DataLocator
impl Sync for DataLocator
impl Unpin for DataLocator
impl UnsafeUnpin for DataLocator
impl UnwindSafe for DataLocator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.