Struct gopher_core::types::DirEntity [] [src]

pub struct DirEntity {
    pub item_type: ItemType,
    pub name: GopherStr,
    pub selector: GopherStr,
    pub host: GopherStr,
    pub port: u16,
}

An menu item in a directory of Gopher resources.

Fields

The type of the resource

String to display to the user.

Path or identifier used for requesting this resource.

The hostname of the server hosting this resource.

The TCP port of the server hosting this resource.

Methods

impl DirEntity
[src]

[src]

Trait Implementations

impl Clone for DirEntity
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DirEntity
[src]

[src]

Formats the value using the given formatter.