[][src]Struct safe_api::XorUrlEncoder

pub struct XorUrlEncoder { /* fields omitted */ }

Methods

impl XorUrlEncoder[src]

pub fn new(
    xorname: XorName,
    type_tag: u64,
    data_type: SafeDataType,
    content_type: SafeContentType,
    path: Option<&str>,
    sub_names: Option<Vec<String>>,
    content_version: Option<u64>
) -> Result<Self>
[src]

pub fn is_media_type_supported(media_type: &str) -> bool[src]

pub fn encode(
    xorname: XorName,
    type_tag: u64,
    data_type: SafeDataType,
    content_type: SafeContentType,
    path: Option<&str>,
    sub_names: Option<Vec<String>>,
    content_version: Option<u64>,
    base: XorUrlBase
) -> Result<String>
[src]

pub fn from_url(xorurl: &str) -> Result<Self>[src]

pub fn encoding_version(&self) -> u64[src]

pub fn data_type(&self) -> SafeDataType[src]

pub fn content_type(&self) -> SafeContentType[src]

pub fn xorname(&self) -> XorName[src]

pub fn type_tag(&self) -> u64[src]

pub fn path(&self) -> &str[src]

pub fn set_path(&mut self, path: &str)[src]

pub fn sub_names(&self) -> Vec<String>[src]

pub fn content_version(&self) -> Option<u64>[src]

pub fn set_content_version(&mut self, version: Option<u64>)[src]

pub fn to_string(&self) -> Result<String>[src]

pub fn to_base(&self, base: XorUrlBase) -> Result<String>[src]

Trait Implementations

impl Clone for XorUrlEncoder[src]

impl Debug for XorUrlEncoder[src]

impl Display for XorUrlEncoder[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,