[−][src]Struct safe_api::XorUrlEncoder
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>
) -> ResultReturn<Self>[src]
xorname: XorName,
type_tag: u64,
data_type: SafeDataType,
content_type: SafeContentType,
path: Option<&str>,
sub_names: Option<Vec<String>>,
content_version: Option<u64>
) -> ResultReturn<Self>
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: &str
) -> ResultReturn<String>[src]
xorname: XorName,
type_tag: u64,
data_type: SafeDataType,
content_type: SafeContentType,
path: Option<&str>,
sub_names: Option<Vec<String>>,
content_version: Option<u64>,
base: &str
) -> ResultReturn<String>
pub fn from_url(xorurl: &str) -> ResultReturn<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) -> ResultReturn<String>[src]
pub fn to_base(&self, base: &str) -> ResultReturn<String>[src]
Trait Implementations
impl Clone for XorUrlEncoder[src]
fn clone(&self) -> XorUrlEncoder[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for XorUrlEncoder[src]
impl Display for XorUrlEncoder[src]
Auto Trait Implementations
impl Send for XorUrlEncoder
impl Unpin for XorUrlEncoder
impl Sync for XorUrlEncoder
impl UnwindSafe for XorUrlEncoder
impl RefUnwindSafe for XorUrlEncoder
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> CloneAny for T where
T: Clone + Any,
T: Clone + Any,
fn clone_any(&self) -> Box<dyn CloneAny + 'static>
fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send> where
T: Send,
T: Send,
fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync> where
T: Sync,
T: Sync,
fn clone_any_send_sync(&self) -> Box<dyn CloneAny + 'static + Sync + Send> where
T: Send + Sync,
T: Send + Sync,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,