pub struct GopherItem {
pub kind: GopherKind,
pub display: String,
pub url: Option<String>,
pub plus: Option<GopherPlus>,
}Expand description
One parsed gopher menu line.
Fields§
§kind: GopherKind§display: String§url: Option<String>The resource URL: a synthesised gopher:// URL (RFC 4266) for standard
items, or the extracted target for a h URL item. None for Info and
Error lines.
plus: Option<GopherPlus>The Gopher+ marker from the fifth field, when the server sent one.
None for a plain RFC 1436 menu.
Trait Implementations§
Source§impl Clone for GopherItem
impl Clone for GopherItem
Source§fn clone(&self) -> GopherItem
fn clone(&self) -> GopherItem
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 GopherItem
impl Debug for GopherItem
impl Eq for GopherItem
Source§impl PartialEq for GopherItem
impl PartialEq for GopherItem
impl StructuralPartialEq for GopherItem
Auto Trait Implementations§
impl Freeze for GopherItem
impl RefUnwindSafe for GopherItem
impl Send for GopherItem
impl Sync for GopherItem
impl Unpin for GopherItem
impl UnsafeUnpin for GopherItem
impl UnwindSafe for GopherItem
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