Struct twilight_model::template::Template [−][src]
pub struct Template {
pub code: String,
pub created_at: Timestamp,
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: Timestamp,
pub usage_count: u64,
}Fields
code: Stringcreated_at: Timestampcreator: UserUser object of who created this template.
creator_id: UserIdID 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: Timestampusage_count: u64Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Template
impl UnwindSafe for Template
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more