Enum sn_api::fetch::SafeData [−][src]
pub enum SafeData {
SafeKey {
xorurl: String,
xorname: XorName,
resolved_from: String,
},
Wallet {
xorurl: String,
xorname: XorName,
type_tag: u64,
balances: WalletSpendableBalances,
data_type: SafeDataType,
resolved_from: String,
},
FilesContainer {
xorurl: String,
xorname: XorName,
type_tag: u64,
version: u64,
files_map: FilesMap,
data_type: SafeDataType,
resolved_from: String,
},
PublicBlob {
xorurl: String,
xorname: XorName,
data: Vec<u8>,
media_type: Option<String>,
metadata: Option<FileItem>,
resolved_from: String,
},
NrsMapContainer {
public_name: Option<String>,
xorurl: String,
xorname: XorName,
type_tag: u64,
version: u64,
nrs_map: NrsMap,
data_type: SafeDataType,
resolved_from: String,
},
Multimap {
xorurl: String,
xorname: XorName,
type_tag: u64,
data: MultimapKeyValues,
resolved_from: String,
},
PublicSequence {
xorurl: String,
xorname: XorName,
type_tag: u64,
version: u64,
data: Vec<u8>,
resolved_from: String,
},
PrivateSequence {
xorurl: String,
xorname: XorName,
type_tag: u64,
version: u64,
data: Vec<u8>,
resolved_from: String,
},
PublicRegister {
xorurl: String,
xorname: XorName,
type_tag: u64,
data: BTreeSet<(EntryHash, Entry)>,
resolved_from: String,
},
PrivateRegister {
xorurl: String,
xorname: XorName,
type_tag: u64,
data: BTreeSet<(EntryHash, Entry)>,
resolved_from: String,
},
}Variants
Show fields
Fields of Wallet
xorurl: Stringxorname: XorNametype_tag: u64balances: WalletSpendableBalancesdata_type: SafeDataTyperesolved_from: StringShow fields
Show fields
Show fields
Show fields
Fields of Multimap
Show fields
Show fields
Show fields
Show fields
Implementations
Trait Implementations
impl<'de> Deserialize<'de> for SafeData[src]
impl<'de> Deserialize<'de> for SafeData[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for SafeData[src]
Auto Trait Implementations
impl RefUnwindSafe for SafeData
impl Send for SafeData
impl Sync for SafeData
impl Unpin for SafeData
impl UnwindSafe for SafeData
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]fn instrument(self, span: Span) -> Instrumented<Self>[src]
fn instrument(self, span: Span) -> Instrumented<Self>[src]Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>[src]
fn in_current_span(self) -> Instrumented<Self>[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,