pub struct Locator {
pub host: String,
pub path: String,
pub when: Option<i64>,
pub place: Option<String>,
}Expand description
A parsed Locator. Round-trips through Locator::parse / [Locator::to_string].
Fields§
§host: String§path: String§when: Option<i64>Timeline year to arrive at (@when), if specified.
place: Option<String>Named anchor within the world (#place), if specified.
Implementations§
Trait Implementations§
impl Eq for Locator
impl StructuralPartialEq for Locator
Auto Trait Implementations§
impl Freeze for Locator
impl RefUnwindSafe for Locator
impl Send for Locator
impl Sync for Locator
impl Unpin for Locator
impl UnsafeUnpin for Locator
impl UnwindSafe for Locator
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