forked from jmug/stoatchat
Run rust fmt.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use serde::{ Deserialize, Serialize };
|
||||
use bson::{ UtcDateTime };
|
||||
use bson::UtcDateTime;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct PreviousEntry {
|
||||
@@ -10,13 +10,13 @@ pub struct PreviousEntry {
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
pub struct Message {
|
||||
#[serde(rename = "_id")]
|
||||
pub id: String,
|
||||
// pub nonce: String, used internally
|
||||
pub channel: String,
|
||||
pub author: String,
|
||||
pub id: String,
|
||||
// pub nonce: String, used internally
|
||||
pub channel: String,
|
||||
pub author: String,
|
||||
|
||||
pub content: String,
|
||||
pub content: String,
|
||||
pub edited: Option<UtcDateTime>,
|
||||
|
||||
pub previous_content: Option<Vec<PreviousEntry>>
|
||||
|
||||
pub previous_content: Option<Vec<PreviousEntry>>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user