Run rust fmt.

This commit is contained in:
Paul Makles
2020-04-06 13:07:05 +01:00
parent 8e908ce105
commit ec1e91aee1
16 changed files with 1094 additions and 1025 deletions

View File

@@ -1,18 +1,18 @@
use serde::{ Deserialize, Serialize };
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug)]
pub struct Channel {
#[serde(rename = "_id")]
pub id: String,
#[serde(rename = "type")]
pub channel_type: u8,
pub channel_type: u8,
pub last_message: Option<String>,
// for Direct Messages
pub recipients: Option<Vec<String>>,
pub last_message: Option<String>,
// for Direct Messages
pub recipients: Option<Vec<String>>,
pub active: Option<bool>,
// for Guilds
pub name: Option<String>,