[][src]Struct safe_api::NrsMap

pub struct NrsMap {
    pub sub_names_map: SubNamesMap,
    pub default: DefaultRdf,
}

Fields

sub_names_map: SubNamesMapdefault: DefaultRdf

Methods

impl NrsMap[src]

pub fn get_default(&self) -> ResultReturn<&DefaultRdf>[src]

pub fn resolve_for_subnames(
    &self,
    sub_names: Vec<String>
) -> ResultReturn<XorUrl>
[src]

pub fn nrs_map_remove_subname(&mut self, name: &str) -> ResultReturn<String>[src]

pub fn nrs_map_update_or_create_data(
    &mut self,
    name: &str,
    link: &str,
    default: bool,
    hard_link: bool
) -> ResultReturn<String>
[src]

pub fn get_map_summary(&self) -> BTreeMap<String, BTreeMap<String, String>>[src]

Trait Implementations

impl Default for NrsMap[src]

impl Clone for NrsMap[src]

impl PartialEq<NrsMap> for NrsMap[src]

impl Debug for NrsMap[src]

impl Serialize for NrsMap[src]

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

Auto Trait Implementations

impl Send for NrsMap

impl Unpin for NrsMap

impl Sync for NrsMap

impl UnwindSafe for NrsMap

impl RefUnwindSafe for NrsMap

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> Clear for T where
    T: InitializableFromZeroed + ?Sized

impl<T> InitializableFromZeroed for T where
    T: Default

impl<T> Same<T> for T

type Output = T

Should always be Self

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

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> UnsafeAny for T where
    T: Any

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