A better Rust ATProto crate
1// @generated by jacquard-lexicon. DO NOT EDIT. 2// 3// Lexicon: app.rocksky.dropbox.defs 4// 5// This file was automatically generated from Lexicon schemas. 6// Any manual changes will be overwritten on the next regeneration. 7 8pub mod download_file; 9pub mod get_files; 10pub mod get_metadata; 11pub mod get_temporary_link; 12 13#[jacquard_derive::lexicon] 14#[derive( 15 serde::Serialize, 16 serde::Deserialize, 17 Debug, 18 Clone, 19 PartialEq, 20 Eq, 21 jacquard_derive::IntoStatic, 22 Default 23)] 24#[serde(rename_all = "camelCase")] 25pub struct FileListView<'a> { 26 /// A list of files in the Dropbox. 27 #[serde(skip_serializing_if = "std::option::Option::is_none")] 28 #[serde(borrow)] 29 pub files: std::option::Option<Vec<crate::app_rocksky::dropbox::FileView<'a>>>, 30} 31 32#[jacquard_derive::lexicon] 33#[derive( 34 serde::Serialize, 35 serde::Deserialize, 36 Debug, 37 Clone, 38 PartialEq, 39 Eq, 40 jacquard_derive::IntoStatic, 41 Default 42)] 43#[serde(rename_all = "camelCase")] 44pub struct FileView<'a> { 45 /// The last modified date and time of the file on the client. 46 #[serde(skip_serializing_if = "std::option::Option::is_none")] 47 pub client_modified: std::option::Option<jacquard_common::types::string::Datetime>, 48 /// The unique identifier of the file. 49 #[serde(skip_serializing_if = "std::option::Option::is_none")] 50 #[serde(borrow)] 51 pub id: std::option::Option<jacquard_common::CowStr<'a>>, 52 /// The name of the file. 53 #[serde(skip_serializing_if = "std::option::Option::is_none")] 54 #[serde(borrow)] 55 pub name: std::option::Option<jacquard_common::CowStr<'a>>, 56 /// The display path of the file. 57 #[serde(skip_serializing_if = "std::option::Option::is_none")] 58 #[serde(borrow)] 59 pub path_display: std::option::Option<jacquard_common::CowStr<'a>>, 60 /// The lowercased path of the file. 61 #[serde(skip_serializing_if = "std::option::Option::is_none")] 62 #[serde(borrow)] 63 pub path_lower: std::option::Option<jacquard_common::CowStr<'a>>, 64 /// The last modified date and time of the file on the server. 65 #[serde(skip_serializing_if = "std::option::Option::is_none")] 66 pub server_modified: std::option::Option<jacquard_common::types::string::Datetime>, 67} 68 69#[jacquard_derive::lexicon] 70#[derive( 71 serde::Serialize, 72 serde::Deserialize, 73 Debug, 74 Clone, 75 PartialEq, 76 Eq, 77 jacquard_derive::IntoStatic, 78 Default 79)] 80#[serde(rename_all = "camelCase")] 81pub struct TemporaryLinkView<'a> { 82 /// The temporary link to access the file. 83 #[serde(skip_serializing_if = "std::option::Option::is_none")] 84 #[serde(borrow)] 85 pub link: std::option::Option<jacquard_common::types::string::Uri<'a>>, 86}