panda 0.5.3

An async Rust library for Discord
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::models::guild::*;
use serde::{Deserialize, Serialize};

use std::ops::Deref;

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct GuildCreate(pub Guild);

impl Deref for GuildCreate {
    type Target = Guild;

    fn deref(&self) -> &Self::Target {
        &self.0
    }
}