pub struct Slashlink {
pub peer: Peer,
pub slug: Option<String>,
}Expand description
A slashlink is form of reference to content in a Sphere. It consists of a
peer part and a slug part. A slashlink with just the slug looks like:
/foo. A slashlink with just the peer looks like: @cdata. With both
parts, the link would look like: @cdata/foo.
This struct makes it easier to parse a slashlink from a string.
Fields§
§peer: Peer§slug: Option<String>Trait Implementations§
impl StructuralPartialEq for Slashlink
Auto Trait Implementations§
impl Freeze for Slashlink
impl RefUnwindSafe for Slashlink
impl Send for Slashlink
impl Sync for Slashlink
impl Unpin for Slashlink
impl UnwindSafe for Slashlink
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