Struct twilight_model::template::Template[][src]

pub struct Template {
    pub code: String,
    pub created_at: String,
    pub creator: User,
    pub creator_id: UserId,
    pub description: Option<String>,
    pub is_dirty: Option<bool>,
    pub name: String,
    pub serialized_source_guild: TemplateGuild,
    pub source_guild_id: GuildId,
    pub updated_at: String,
    pub usage_count: u64,
}

Fields

code: Stringcreated_at: Stringcreator: User

User object of who created this template.

creator_id: UserId

ID of the user who created this template.

description: Option<String>is_dirty: Option<bool>

Whether the template has unsynced changes.

name: Stringserialized_source_guild: TemplateGuildsource_guild_id: GuildIdupdated_at: Stringusage_count: u64

Trait Implementations

impl Clone for Template[src]

impl Debug for Template[src]

impl<'de> Deserialize<'de> for Template[src]

impl Eq for Template[src]

impl PartialEq<Template> for Template[src]

impl Serialize for Template[src]

impl StructuralEq for Template[src]

impl StructuralPartialEq for Template[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.