mirror of
https://github.com/xvxx/phetch
synced 2024-11-10 13:10:54 +00:00
tweaks
This commit is contained in:
parent
f086b61773
commit
76d3a977bd
@ -2,7 +2,6 @@
|
||||
|
||||
extern crate termion;
|
||||
|
||||
mod fetch;
|
||||
mod gopher;
|
||||
mod menu;
|
||||
mod types;
|
||||
|
@ -2,7 +2,6 @@ use gopher::Type;
|
||||
use std::io;
|
||||
use ui::{Action, Key, View};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct MenuView {
|
||||
pub input: String, // user's inputted value
|
||||
pub menu: Menu, // data
|
||||
@ -10,14 +9,12 @@ pub struct MenuView {
|
||||
pub scroll: usize, // scrolling offset
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Menu {
|
||||
url: String, // gopher url
|
||||
lines: Vec<Line>, // lines
|
||||
raw: String, // raw gopher response
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct Line {
|
||||
name: String,
|
||||
url: String,
|
||||
|
Loading…
Reference in New Issue
Block a user