[−][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>
) -> Result<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>
) -> Result<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: XorUrlBase
) -> Result<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: XorUrlBase
) -> Result<String>
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]
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 RefUnwindSafe for XorUrlEncoder
impl Send for XorUrlEncoder
impl Sync for XorUrlEncoder
impl Unpin for XorUrlEncoder
impl UnwindSafe for XorUrlEncoder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
T: Send + Sync + UnwindSafe + ?Sized,
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> 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> UnsafeAny for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,