Struct helianto::Site [] [src]

pub struct Site {
    pub title: String,
    pub language: Option<String>,
    pub url: String,
}

Fields

title: String language: Option<String> url: String

Methods

impl Site
[src]

fn new(setting: &Settings) -> Site

Trait Implementations

impl Decodable for Site
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Site, __D::Error>

impl Encodable for Site
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Debug for Site
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl ToJson for Site
[src]

fn to_json(&self) -> Json

Converts the value of self to an instance of JSON

impl Default for Site
[src]

fn default() -> Site

Returns the "default value" for a type. Read more