pub struct Template {
pub code: String,
pub created_at: Timestamp,
pub creator: User,
pub creator_id: Id<UserMarker>,
pub description: Option<String>,
pub is_dirty: Option<bool>,
pub name: String,
pub serialized_source_guild: TemplateGuild,
pub source_guild_id: Id<GuildMarker>,
pub updated_at: Timestamp,
pub usage_count: u64,
}
Fields§
§code: String
§created_at: Timestamp
§creator: User
User object of who created this template.
creator_id: Id<UserMarker>
ID of the user who created this template.
description: Option<String>
§is_dirty: Option<bool>
Whether the template has unsynced changes.
name: String
§serialized_source_guild: TemplateGuild
§source_guild_id: Id<GuildMarker>
§updated_at: Timestamp
§usage_count: u64
Trait Implementations§
source§impl<'de> Deserialize<'de> for Template
impl<'de> Deserialize<'de> for Template
source§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
impl Eq for Template
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnwindSafe for Template
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)