#[repr(transparent)]pub struct Uri { /* private fields */ }
Implementations
sourceimpl Uri
impl Uri
pub fn auth_params(&self) -> Option<GString>
Available on crate feature
v2_66
only.pub fn flags(&self) -> UriFlags
Available on crate feature
v2_66
only.pub fn fragment(&self) -> Option<GString>
Available on crate feature
v2_66
only.pub fn host(&self) -> Option<GString>
Available on crate feature
v2_66
only.pub fn password(&self) -> Option<GString>
Available on crate feature
v2_66
only.pub fn path(&self) -> GString
Available on crate feature
v2_66
only.pub fn port(&self) -> i32
Available on crate feature
v2_66
only.pub fn query(&self) -> Option<GString>
Available on crate feature
v2_66
only.pub fn scheme(&self) -> GString
Available on crate feature
v2_66
only.pub fn user(&self) -> Option<GString>
Available on crate feature
v2_66
only.pub fn userinfo(&self) -> Option<GString>
Available on crate feature
v2_66
only.pub fn parse_relative(&self, uri_ref: &str, flags: UriFlags) -> Result<Uri, Error>
Available on crate feature
v2_66
only.pub fn to_str(&self) -> GString
Available on crate feature
v2_66
only.pub fn to_string_partial(&self, flags: UriHideFlags) -> GString
Available on crate feature
v2_66
only.pub fn build(
flags: UriFlags,
scheme: &str,
userinfo: Option<&str>,
host: Option<&str>,
port: i32,
path: &str,
query: Option<&str>,
fragment: Option<&str>
) -> Uri
Available on crate feature
v2_66
only.pub fn build_with_user(
flags: UriFlags,
scheme: &str,
user: Option<&str>,
password: Option<&str>,
auth_params: Option<&str>,
host: Option<&str>,
port: i32,
path: &str,
query: Option<&str>,
fragment: Option<&str>
) -> Uri
Available on crate feature
v2_66
only.pub fn escape_bytes(
unescaped: &[u8],
reserved_chars_allowed: Option<&str>
) -> GString
Available on crate feature
v2_66
only.pub fn escape_string(
unescaped: &str,
reserved_chars_allowed: Option<&str>,
allow_utf8: bool
) -> GString
Available on crate feature
v2_66
only.pub fn is_valid(uri_string: &str, flags: UriFlags) -> Result<(), Error>
Available on crate feature
v2_66
only.pub fn join(
flags: UriFlags,
scheme: Option<&str>,
userinfo: Option<&str>,
host: Option<&str>,
port: i32,
path: &str,
query: Option<&str>,
fragment: Option<&str>
) -> GString
Available on crate feature
v2_66
only.pub fn join_with_user(
flags: UriFlags,
scheme: Option<&str>,
user: Option<&str>,
password: Option<&str>,
auth_params: Option<&str>,
host: Option<&str>,
port: i32,
path: &str,
query: Option<&str>,
fragment: Option<&str>
) -> GString
Available on crate feature
v2_66
only.pub fn list_extract_uris(uri_list: &str) -> Vec<GString>
Available on crate feature
v2_66
only.pub fn parse(uri_string: &str, flags: UriFlags) -> Result<Uri, Error>
Available on crate feature
v2_66
only.pub fn parse_scheme(uri: &str) -> Option<GString>
Available on crate feature
v2_66
only.pub fn peek_scheme(uri: &str) -> Option<GString>
Available on crate feature
v2_66
only.pub fn resolve_relative(
base_uri_string: Option<&str>,
uri_ref: &str,
flags: UriFlags
) -> Result<GString, Error>
Available on crate feature
v2_66
only.pub fn split(
uri_ref: &str,
flags: UriFlags
) -> Result<(Option<GString>, Option<GString>, Option<GString>, i32, GString, Option<GString>, Option<GString>), Error>
Available on crate feature
v2_66
only.pub fn split_network(
uri_string: &str,
flags: UriFlags
) -> Result<(Option<GString>, Option<GString>, i32), Error>
Available on crate feature
v2_66
only.pub fn split_with_user(
uri_ref: &str,
flags: UriFlags
) -> Result<(Option<GString>, Option<GString>, Option<GString>, Option<GString>, Option<GString>, i32, GString, Option<GString>, Option<GString>), Error>
Available on crate feature
v2_66
only.pub fn unescape_bytes(
escaped_string: &str,
illegal_characters: Option<&str>
) -> Result<Bytes, Error>
Available on crate feature
v2_66
only.pub fn unescape_segment(
escaped_string: Option<&str>,
escaped_string_end: Option<&str>,
illegal_characters: Option<&str>
) -> Option<GString>
Available on crate feature
v2_66
only.pub fn unescape_string(
escaped_string: &str,
illegal_characters: Option<&str>
) -> Option<GString>
Available on crate feature
v2_66
only.Trait Implementations
sourceimpl Ord for Uri
Available on crate feature v2_66
only.
impl Ord for Uri
Available on crate feature
v2_66
only.1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<Uri> for Uri
Available on crate feature v2_66
only.
impl PartialEq<Uri> for Uri
Available on crate feature
v2_66
only.sourceimpl PartialOrd<Uri> for Uri
Available on crate feature v2_66
only.
impl PartialOrd<Uri> for Uri
Available on crate feature
v2_66
only.sourcefn partial_cmp(&self, other: &Uri) -> Option<Ordering>
fn partial_cmp(&self, other: &Uri) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl StaticType for Uri
Available on crate feature v2_66
only.
impl StaticType for Uri
Available on crate feature
v2_66
only.sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Eq for Uri
Available on crate feature
v2_66
only.impl Send for Uri
Available on crate feature
v2_66
only.impl StructuralEq for Uri
Available on crate feature
v2_66
only.impl StructuralPartialEq for Uri
Available on crate feature
v2_66
only.impl Sync for Uri
Available on crate feature
v2_66
only.Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.