pub struct VanityUrl {
pub code: String,
pub uses: u64,
}
Expand description
Information about a guild’s vanity URL setting.
Fields§
§code: String
Code of the vanity URL.
For example, in an invite of discord.gg/applejack
, the code is
applejack
.
uses: u64
Number of times the vanity URL has been used.
Trait Implementations§
source§impl<'de> Deserialize<'de> for VanityUrl
impl<'de> Deserialize<'de> for VanityUrl
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 VanityUrl
impl StructuralPartialEq for VanityUrl
Auto Trait Implementations§
impl Freeze for VanityUrl
impl RefUnwindSafe for VanityUrl
impl Send for VanityUrl
impl Sync for VanityUrl
impl Unpin for VanityUrl
impl UnwindSafe for VanityUrl
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
)