pub enum ListingLine {
Link {
url: String,
label: Option<String>,
},
Text(String),
}Expand description
One line of a directory listing.
Variants§
Link
A => link line. The spec defines only the URL; text after the
first whitespace is preserved as a label by client convention.
Text(String)
Any other line, verbatim.
Trait Implementations§
Source§impl Clone for ListingLine
impl Clone for ListingLine
Source§fn clone(&self) -> ListingLine
fn clone(&self) -> ListingLine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListingLine
impl Debug for ListingLine
impl Eq for ListingLine
Source§impl PartialEq for ListingLine
impl PartialEq for ListingLine
impl StructuralPartialEq for ListingLine
Auto Trait Implementations§
impl Freeze for ListingLine
impl RefUnwindSafe for ListingLine
impl Send for ListingLine
impl Sync for ListingLine
impl Unpin for ListingLine
impl UnsafeUnpin for ListingLine
impl UnwindSafe for ListingLine
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