[][src]Trait rtdlib::types::UserType

pub trait UserType: Object + RObject + Debug + Serialize + Deserialize { }

This class is an abstract base class. Represents the type of the user. The following types are possible: regular users, deleted users and bots.

Methods

impl dyn UserType[src]

pub fn from_json<S: AsRef<str>>(json: S) -> Option<Box<Self>>[src]

Trait Implementations

impl<'typetag> Serialize for dyn UserType + 'typetag[src]

impl<'typetag> Serialize for dyn UserType + Send + 'typetag[src]

impl<'typetag> Serialize for dyn UserType + Sync + 'typetag[src]

impl<'typetag> Serialize for dyn UserType + Send + Sync + 'typetag[src]

impl Strictest for dyn UserType[src]

type Object = dyn UserType

Implementors

impl UserType for UserTypeBot[src]

impl UserType for UserTypeDeleted[src]

impl UserType for UserTypeRegular[src]

impl UserType for UserTypeUnknown[src]

Loading content...