pub struct User {Show 14 fields
pub id: Uuid,
pub active_character_id: Uuid,
pub tg_id: Option<i64>,
pub firebase_id: Option<String>,
pub photo_url: Option<String>,
pub is_premium: Option<bool>,
pub is_deleted: bool,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub username: String,
pub username_discriminator: Option<i64>,
pub last_username_change_at: Option<DateTime<Utc>>,
pub language_code: String,
pub allows_write_to_pm: Option<bool>,
}Fields§
§id: Uuid§active_character_id: Uuid§tg_id: Option<i64>§firebase_id: Option<String>§photo_url: Option<String>§is_deleted: bool§first_name: Option<String>§last_name: Option<String>§username: String§username_discriminator: Option<i64>§last_username_change_at: Option<DateTime<Utc>>§language_code: String§allows_write_to_pm: Option<bool>Trait Implementations§
Source§impl CustomType for User
impl CustomType for User
Source§fn build(builder: TypeBuilder<'_, Self>)
fn build(builder: TypeBuilder<'_, Self>)
Builds the custom type for use with the [
Engine]. Read moreSource§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
Source§impl JsonSchema for User
impl JsonSchema for User
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl Tsify for User
impl Tsify for User
const DECL: &'static str = "export interface User {\n id: Uuid;\n active_character_id: Uuid;\n tg_id: number | null;\n firebase_id: string | null;\n photo_url: string | null;\n is_premium: boolean | null;\n is_deleted: boolean;\n first_name: string | null;\n last_name: string | null;\n username: string;\n username_discriminator: number | null;\n last_username_change_at: DateTime<Utc> | null;\n language_code: string;\n allows_write_to_pm: boolean | null;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
type JsType = JsType
fn into_js(&self) -> Result<Self::JsType, Error>where
Self: Serialize,
fn from_js<T>(js: T) -> Result<Self, Error>
impl Eq for User
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more