line-messaging-api-rust 0.1.1

LINE Messaging API Wrapper in Rust
Documentation
#[derive(Serialize, Deserialize, Clone)]
pub struct LineBotConfig {
    channel_secret: String,
    channel_token:  String,
}

impl LineBotConfig {
    pub fn new(channel_secret: &str, channel_token: &str) -> LineBotConfig{
        LineBotConfig {
            channel_secret: String::from(channel_secret),
            channel_token:  String::from(channel_token)
        }
    }

    pub fn get_channel_secret(&self) -> String{
        self.channel_secret.clone()
    }

    pub fn get_channel_token(&self) -> String{
        self.channel_token.clone()
    }
}

#[derive(Serialize, Deserialize, Clone)]
pub struct Rectangle {
    pub x:      u64,
    pub y:      u64,
    pub width:  u64,
    pub height: u64
}