pub struct EventDescription {
pub name: String,
pub description: I18nString,
pub color: String,
pub icon_url: String,
pub bg_url: String,
pub bg_path: String,
pub text_url: String,
pub effect_url: String,
pub ttl_milliseconds: u64,
}Fields§
§name: String§description: I18nString§color: String§icon_url: String§bg_url: String§bg_path: String§text_url: String§effect_url: String§ttl_milliseconds: u64Trait Implementations§
Source§impl Clone for EventDescription
impl Clone for EventDescription
Source§fn clone(&self) -> EventDescription
fn clone(&self) -> EventDescription
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventDescription
impl Debug for EventDescription
Source§impl<'de> Deserialize<'de> for EventDescription
impl<'de> Deserialize<'de> for EventDescription
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 EventDescription
impl JsonSchema for EventDescription
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 PartialEq for EventDescription
impl PartialEq for EventDescription
Source§impl Serialize for EventDescription
impl Serialize for EventDescription
Source§impl Tsify for EventDescription
impl Tsify for EventDescription
const DECL: &'static str = "export interface EventDescription {\n name: string;\n description: I18nString;\n color: string;\n icon_url: string;\n bg_url: string;\n bg_path: string;\n text_url: string;\n effect_url: string;\n ttl_milliseconds: number;\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 EventDescription
impl StructuralPartialEq for EventDescription
Auto Trait Implementations§
impl Freeze for EventDescription
impl RefUnwindSafe for EventDescription
impl Send for EventDescription
impl Sync for EventDescription
impl Unpin for EventDescription
impl UnwindSafe for EventDescription
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
§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