jacquard_api/place_stream/chat/
profile.rs

1// @generated by jacquard-lexicon. DO NOT EDIT.
2//
3// Lexicon: place.stream.chat.profile
4//
5// This file was automatically generated from Lexicon schemas.
6// Any manual changes will be overwritten on the next regeneration.
7
8///Customizations for the color of a user's name in chat
9#[jacquard_derive::lexicon]
10#[derive(
11    serde::Serialize,
12    serde::Deserialize,
13    Debug,
14    Clone,
15    PartialEq,
16    Eq,
17    jacquard_derive::IntoStatic
18)]
19#[serde(rename_all = "camelCase")]
20pub struct Color<'a> {
21    pub blue: i64,
22    pub green: i64,
23    pub red: i64,
24}
25
26///Record containing customizations for a user's chat profile.
27#[jacquard_derive::lexicon]
28#[derive(
29    serde::Serialize,
30    serde::Deserialize,
31    Debug,
32    Clone,
33    PartialEq,
34    Eq,
35    jacquard_derive::IntoStatic
36)]
37#[serde(rename_all = "camelCase")]
38pub struct Profile<'a> {
39    #[serde(skip_serializing_if = "std::option::Option::is_none")]
40    #[serde(borrow)]
41    pub color: std::option::Option<crate::place_stream::chat::profile::Color<'a>>,
42}
43
44impl jacquard_common::types::collection::Collection for Profile<'_> {
45    const NSID: &'static str = "place.stream.chat.profile";
46}