// @generated by jacquard-lexicon. DO NOT EDIT. // // Lexicon: app.rocksky.player.defs // // This file was automatically generated from Lexicon schemas. // Any manual changes will be overwritten on the next regeneration. pub mod get_currently_playing; pub mod next; pub mod pause; pub mod play; pub mod previous; pub mod seek; use jacquard_common::CowStr; #[allow(unused_imports)] use jacquard_common::deps::codegen::unicode_segmentation::UnicodeSegmentation; use jacquard_common::types::value::Data; use jacquard_derive::{IntoStatic, lexicon}; use jacquard_lexicon::lexicon::LexiconDoc; use jacquard_lexicon::schema::LexiconSchema; #[allow(unused_imports)] use jacquard_lexicon::validation::{ConstraintError, ValidationPath}; use serde::{Serialize, Deserialize}; #[lexicon] #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)] #[serde(rename_all = "camelCase")] pub struct CurrentlyPlayingViewDetailed<'a> { ///The title of the currently playing track #[serde(skip_serializing_if = "Option::is_none")] #[serde(borrow)] pub title: Option>, } #[lexicon] #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic, Default)] #[serde(rename_all = "camelCase")] pub struct PlaybackQueueViewDetailed<'a> { #[serde(skip_serializing_if = "Option::is_none")] #[serde(borrow)] pub tracks: Option>>, } impl<'a> LexiconSchema for CurrentlyPlayingViewDetailed<'a> { fn nsid() -> &'static str { "app.rocksky.player.defs" } fn def_name() -> &'static str { "currentlyPlayingViewDetailed" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_rocksky_player_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) } } impl<'a> LexiconSchema for PlaybackQueueViewDetailed<'a> { fn nsid() -> &'static str { "app.rocksky.player.defs" } fn def_name() -> &'static str { "playbackQueueViewDetailed" } fn lexicon_doc() -> LexiconDoc<'static> { lexicon_doc_app_rocksky_player_defs() } fn validate(&self) -> Result<(), ConstraintError> { Ok(()) } } fn lexicon_doc_app_rocksky_player_defs() -> LexiconDoc<'static> { #[allow(unused_imports)] use jacquard_common::{CowStr, deps::smol_str::SmolStr, types::blob::MimeType}; use jacquard_lexicon::lexicon::*; use alloc::collections::BTreeMap; LexiconDoc { lexicon: Lexicon::Lexicon1, id: CowStr::new_static("app.rocksky.player.defs"), defs: { let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("currentlyPlayingViewDetailed"), LexUserType::Object(LexObject { properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("title"), LexObjectProperty::String(LexString { description: Some( CowStr::new_static( "The title of the currently playing track", ), ), ..Default::default() }), ); map }, ..Default::default() }), ); map.insert( SmolStr::new_static("playbackQueueViewDetailed"), LexUserType::Object(LexObject { properties: { #[allow(unused_mut)] let mut map = BTreeMap::new(); map.insert( SmolStr::new_static("tracks"), LexObjectProperty::Array(LexArray { items: LexArrayItem::Ref(LexRef { r#ref: CowStr::new_static( "app.rocksky.song.defs.songViewBasic", ), ..Default::default() }), ..Default::default() }), ); map }, ..Default::default() }), ); map }, ..Default::default() } }