pub struct Uri(/* private fields */);Expand description
A Haystack Uri.
Implementations§
Source§impl Uri
impl Uri
Sourcepub fn new(s: String) -> Uri
pub fn new(s: String) -> Uri
Create a new Uri.
§Example
use raystack_core::Uri;
let my_uri = Uri::new("http://skyspark.company.com".to_string());Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Convert this Uri into a string.
Sourcepub fn to_axon_code(&self) -> String
pub fn to_axon_code(&self) -> String
Return this uri as an Axon Uri literal.
Trait Implementations§
impl Eq for Uri
impl StructuralPartialEq for Uri
Auto Trait Implementations§
impl Freeze for Uri
impl RefUnwindSafe for Uri
impl Send for Uri
impl Sync for Uri
impl Unpin for Uri
impl UnwindSafe for Uri
Blanket Implementations§
Source§impl<T> AsUncased for T
impl<T> AsUncased for T
Source§fn as_uncased(&self) -> &UncasedStr
fn as_uncased(&self) -> &UncasedStr
Convert
self to an UncasedStr.Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.