pub struct RayUrl(/* private fields */);Expand description
Parsed, validated URL for Ray link payloads.
URLs must be absolute (include a scheme, e.g. https://example.com).
use ray::{RayError, RayUrl};
fn main() -> Result<(), RayError> {
let url = RayUrl::parse("https://example.com")?;
assert_eq!(url.as_str(), "https://example.com/");
Ok(())
}Implementations§
Trait Implementations§
Source§impl RayUrlInput for &RayUrl
impl RayUrlInput for &RayUrl
Source§impl RayUrlInput for RayUrl
impl RayUrlInput for RayUrl
impl Eq for RayUrl
impl StructuralPartialEq for RayUrl
Auto Trait Implementations§
impl Freeze for RayUrl
impl RefUnwindSafe for RayUrl
impl Send for RayUrl
impl Sync for RayUrl
impl Unpin for RayUrl
impl UnwindSafe for RayUrl
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