pub struct URI(/* private fields */);
Expand description
A Uniform Resource Identifier (URI).
A URI is a string of characters that unambiguously identifies a particular
resource. This implementation validates URIs using the url
crate to ensure
conformance to RFC 3986.
URIs are commonly used for:
- Web addresses (URLs like “https://example.com”)
- Resource identifiers in various protocols
- Namespace identifiers
- References to resources in distributed systems
Implementations§
Trait Implementations§
Source§impl AsRef<String> for URI
Implements AsRef<String>
to allow URI to be treated as a String reference.
impl AsRef<String> for URI
Implements AsRef<String>
to allow URI to be treated as a String reference.
Source§impl CBORTagged for URI
Implements CBORTagged trait to provide CBOR tag information.
impl CBORTagged for URI
Implements CBORTagged trait to provide CBOR tag information.
Returns the CBOR tags associated with this type. Read more
Source§impl CBORTaggedDecodable for URI
Implements CBORTaggedDecodable to provide CBOR decoding functionality.
impl CBORTaggedDecodable for URI
Implements CBORTaggedDecodable to provide CBOR decoding functionality.
Source§fn from_untagged_cbor(cbor: CBOR) -> Result<Self>
fn from_untagged_cbor(cbor: CBOR) -> Result<Self>
Creates an instance of this type by decoding it from untagged CBOR. Read more
Source§fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
Creates an instance of this type by decoding it from tagged CBOR. Read more
Source§impl CBORTaggedEncodable for URI
Implements CBORTaggedEncodable to provide CBOR encoding functionality.
impl CBORTaggedEncodable for URI
Implements CBORTaggedEncodable to provide CBOR encoding functionality.
Source§fn untagged_cbor(&self) -> CBOR
fn untagged_cbor(&self) -> CBOR
Returns the untagged CBOR encoding of this instance. Read more
Source§fn tagged_cbor(&self) -> CBOR
fn tagged_cbor(&self) -> CBOR
Returns the tagged CBOR encoding of this instance. Read more
Source§impl TryFrom<CBOR> for URI
Implements TryFrom<CBOR>
for URI to support conversion from CBOR data.
impl TryFrom<CBOR> for URI
Implements TryFrom<CBOR>
for URI to support conversion from CBOR data.
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> 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