[][src]Struct fql_server::App

pub struct App {
    pub dir: String,
    pub port: String,
    pub path: String,
    pub title: String,
    pub sub_title: String,
    pub table_heads: Vec<String>,
    pub services: Vec<Service>,
}

应用程序控制器

Fields

dir: Stringport: Stringpath: Stringtitle: Stringsub_title: Stringtable_heads: Vec<String>services: Vec<Service>

Implementations

impl App[src]

pub fn from_file(path: &str) -> Self[src]

从文件中加载控制器

pub fn parse_env() -> Self[src]

命令行加载控制器

pub fn localhost(&self) -> String[src]

返回在本地运行地址

Trait Implementations

impl Clone for App[src]

impl Debug for App[src]

impl From<Parser<'_>> for App[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any