- Removing dead_code attr from TEXT_CHANNEL
+ Adding Clone derivation to Channel struct
This commit is contained in:
parent
a098121ab8
commit
3c10d342eb
@ -1,9 +1,8 @@
|
||||
use serde::{Serialize, Deserialize};
|
||||
use serde::Deserialize;
|
||||
|
||||
#[allow(dead_code)]
|
||||
const VOICE_CHANNEL: i32 = 1;
|
||||
#[allow(dead_code)]
|
||||
const TEXT_CHANNEL: i32 = 2;
|
||||
pub const TEXT_CHANNEL: i32 = 2;
|
||||
|
||||
// Network Types
|
||||
#[allow(dead_code)]
|
||||
@ -18,11 +17,11 @@ pub struct Message {
|
||||
}
|
||||
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(Clone)]
|
||||
pub struct Channel {
|
||||
pub name: String,
|
||||
pub id: u64,
|
||||
pub type_: i32,
|
||||
pub r#type: i32,
|
||||
pub description: Option<String>,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user