[][src]Enum safe_api::SafeData

pub enum SafeData {
    SafeKey {
        xorname: XorName,
        resolved_from: Option<NrsMapContainerInfo>,
    },
    Wallet {
        xorname: XorName,
        type_tag: u64,
        balances: WalletSpendableBalances,
        data_type: SafeDataType,
        resolved_from: Option<NrsMapContainerInfo>,
    },
    FilesContainer {
        xorname: XorName,
        type_tag: u64,
        version: u64,
        files_map: FilesMap,
        data_type: SafeDataType,
        resolved_from: Option<NrsMapContainerInfo>,
    },
    PublishedImmutableData {
        xorname: XorName,
        data: Vec<u8>,
        resolved_from: Option<NrsMapContainerInfo>,
        media_type: Option<String>,
    },
}

Variants

SafeKey

Fields of SafeKey

xorname: XorNameresolved_from: Option<NrsMapContainerInfo>
Wallet

Fields of Wallet

xorname: XorNametype_tag: u64balances: WalletSpendableBalancesdata_type: SafeDataTyperesolved_from: Option<NrsMapContainerInfo>
FilesContainer

Fields of FilesContainer

xorname: XorNametype_tag: u64version: u64files_map: FilesMapdata_type: SafeDataTyperesolved_from: Option<NrsMapContainerInfo>
PublishedImmutableData

Fields of PublishedImmutableData

xorname: XorNamedata: Vec<u8>resolved_from: Option<NrsMapContainerInfo>media_type: Option<String>

Trait Implementations

impl PartialEq<SafeData> for SafeData[src]

impl Debug for SafeData[src]

impl Serialize for SafeData[src]

impl<'de> Deserialize<'de> for SafeData[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> UnsafeAny for T where
    T: Any

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized