Last active
March 11, 2023 15:10
-
-
Save denisrudnei/2dd94a597bb4c8c5164dfac69399ff80 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde_derive::Deserialize; | |
use serde_derive::Serialize; | |
use serde_json::Value; | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Root { | |
pub id: String, | |
pub node_id: String, | |
pub name: String, | |
pub desc: String, | |
pub desc_data: Value, | |
pub closed: bool, | |
pub date_closed: Value, | |
pub id_organization: String, | |
pub id_enterprise: Value, | |
pub limits: Limits, | |
pub pinned: bool, | |
pub starred: bool, | |
pub url: String, | |
pub prefs: Prefs, | |
pub short_link: String, | |
pub subscribed: bool, | |
pub label_names: LabelNames, | |
pub power_ups: Vec<Value>, | |
pub date_last_activity: String, | |
pub date_last_view: String, | |
pub short_url: String, | |
pub id_tags: Vec<Value>, | |
pub date_plugin_disable: Value, | |
pub creation_method: Value, | |
pub ix_update: String, | |
pub template_gallery: Value, | |
pub enterprise_owned: bool, | |
pub id_board_source: String, | |
pub premium_features: Vec<String>, | |
pub id_member_creator: String, | |
pub actions: Vec<Action>, | |
pub cards: Vec<Card2>, | |
pub labels: Vec<Label2>, | |
pub lists: Vec<List2>, | |
pub members: Vec<Member3>, | |
pub checklists: Vec<Checklist2>, | |
pub custom_fields: Vec<Value>, | |
pub memberships: Vec<Membership>, | |
pub plugin_data: Vec<Value>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Limits { | |
pub attachments: Attachments, | |
pub boards: Boards, | |
pub cards: Cards, | |
pub checklists: Checklists, | |
pub check_items: CheckItems, | |
pub custom_fields: CustomFields, | |
pub custom_field_options: CustomFieldOptions, | |
pub labels: Labels, | |
pub lists: Lists, | |
pub stickers: Stickers, | |
pub reactions: Reactions, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Attachments { | |
pub per_board: PerBoard, | |
pub per_card: PerCard, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerBoard { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerCard { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Boards { | |
pub total_members_per_board: TotalMembersPerBoard, | |
pub total_access_requests_per_board: TotalAccessRequestsPerBoard, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct TotalMembersPerBoard { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct TotalAccessRequestsPerBoard { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Cards { | |
pub open_per_board: OpenPerBoard, | |
pub open_per_list: OpenPerList, | |
pub total_per_board: TotalPerBoard, | |
pub total_per_list: TotalPerList, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct OpenPerBoard { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct OpenPerList { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct TotalPerBoard { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct TotalPerList { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Checklists { | |
pub per_board: PerBoard2, | |
pub per_card: PerCard2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerBoard2 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerCard2 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct CheckItems { | |
pub per_checklist: PerChecklist, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerChecklist { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct CustomFields { | |
pub per_board: PerBoard3, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerBoard3 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct CustomFieldOptions { | |
pub per_field: PerField, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerField { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Labels { | |
pub per_board: PerBoard4, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerBoard4 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Lists { | |
pub open_per_board: OpenPerBoard2, | |
pub total_per_board: TotalPerBoard2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct OpenPerBoard2 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct TotalPerBoard2 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Stickers { | |
pub per_card: PerCard3, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerCard3 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Reactions { | |
pub per_action: PerAction, | |
pub unique_per_action: UniquePerAction, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerAction { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct UniquePerAction { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Prefs { | |
pub permission_level: String, | |
pub hide_votes: bool, | |
pub voting: String, | |
pub comments: String, | |
pub invitations: String, | |
pub self_join: bool, | |
pub card_covers: bool, | |
pub is_template: bool, | |
pub card_aging: String, | |
pub calendar_feed_enabled: bool, | |
pub hidden_plugin_board_buttons: Vec<Value>, | |
pub switcher_views: Vec<SwitcherView>, | |
pub background: String, | |
pub background_color: Value, | |
pub background_image: String, | |
pub background_image_scaled: Vec<BackgroundImageScaled>, | |
pub background_tile: bool, | |
pub background_brightness: String, | |
pub background_bottom_color: String, | |
pub background_top_color: String, | |
pub can_be_public: bool, | |
pub can_be_enterprise: bool, | |
pub can_be_org: bool, | |
pub can_be_private: bool, | |
pub can_invite: bool, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct SwitcherView { | |
#[serde(rename = "_id")] | |
pub id: String, | |
pub view_type: String, | |
pub enabled: bool, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct BackgroundImageScaled { | |
pub width: i64, | |
pub height: i64, | |
pub url: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct LabelNames { | |
pub green: String, | |
pub yellow: String, | |
pub orange: String, | |
pub red: String, | |
pub purple: String, | |
pub blue: String, | |
pub sky: String, | |
pub lime: String, | |
pub pink: String, | |
pub black: String, | |
#[serde(rename = "green_dark")] | |
pub green_dark: String, | |
#[serde(rename = "yellow_dark")] | |
pub yellow_dark: String, | |
#[serde(rename = "orange_dark")] | |
pub orange_dark: String, | |
#[serde(rename = "red_dark")] | |
pub red_dark: String, | |
#[serde(rename = "purple_dark")] | |
pub purple_dark: String, | |
#[serde(rename = "blue_dark")] | |
pub blue_dark: String, | |
#[serde(rename = "sky_dark")] | |
pub sky_dark: String, | |
#[serde(rename = "lime_dark")] | |
pub lime_dark: String, | |
#[serde(rename = "pink_dark")] | |
pub pink_dark: String, | |
#[serde(rename = "black_dark")] | |
pub black_dark: String, | |
#[serde(rename = "green_light")] | |
pub green_light: String, | |
#[serde(rename = "yellow_light")] | |
pub yellow_light: String, | |
#[serde(rename = "orange_light")] | |
pub orange_light: String, | |
#[serde(rename = "red_light")] | |
pub red_light: String, | |
#[serde(rename = "purple_light")] | |
pub purple_light: String, | |
#[serde(rename = "blue_light")] | |
pub blue_light: String, | |
#[serde(rename = "sky_light")] | |
pub sky_light: String, | |
#[serde(rename = "lime_light")] | |
pub lime_light: String, | |
#[serde(rename = "pink_light")] | |
pub pink_light: String, | |
#[serde(rename = "black_light")] | |
pub black_light: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Action { | |
pub id: String, | |
pub id_member_creator: String, | |
pub data: Data, | |
pub app_creator: Value, | |
#[serde(rename = "type")] | |
pub type_field: String, | |
pub date: String, | |
pub limits: Option<Limits2>, | |
pub member_creator: MemberCreator, | |
pub member: Option<Member2>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Data { | |
pub card: Card, | |
pub old: Option<Old>, | |
pub board: Board, | |
pub list: Option<List>, | |
pub id_member: Option<String>, | |
pub from_copy: Option<bool>, | |
pub member: Option<Member>, | |
pub card_source: Option<CardSource>, | |
pub list_before: Option<ListBefore>, | |
pub list_after: Option<ListAfter>, | |
pub text: Option<String>, | |
pub text_data: Option<TextData>, | |
pub checklist: Option<Checklist>, | |
pub check_item: Option<CheckItem>, | |
pub deactivated: Option<bool>, | |
pub attachment: Option<Attachment>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Card { | |
pub name: Option<String>, | |
pub id: String, | |
pub id_short: i64, | |
pub short_link: String, | |
pub pos: Option<f64>, | |
pub id_list: Option<String>, | |
pub due_complete: Option<bool>, | |
pub cover: Option<Cover>, | |
#[serde(default)] | |
pub id_labels: Vec<String>, | |
pub closed: Option<bool>, | |
pub due: Option<String>, | |
pub due_reminder: Option<i64>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Cover { | |
pub color: String, | |
pub id_attachment: Value, | |
pub id_uploaded_background: Value, | |
pub size: String, | |
pub brightness: String, | |
pub plugin: Value, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Old { | |
pub name: Option<String>, | |
pub id_list: Option<String>, | |
pub pos: Option<f64>, | |
pub due_complete: Option<bool>, | |
#[serde(default)] | |
pub id_labels: Vec<String>, | |
pub cover: Option<Cover2>, | |
pub due: Option<String>, | |
pub due_reminder: Value, | |
pub closed: Option<bool>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Cover2 { | |
pub color: Value, | |
pub id_attachment: Value, | |
pub id_uploaded_background: Value, | |
pub size: String, | |
pub brightness: String, | |
pub plugin: Value, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Board { | |
pub id: String, | |
pub name: String, | |
pub short_link: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct List { | |
pub id: String, | |
pub name: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Member { | |
pub id: String, | |
pub name: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct CardSource { | |
pub id: String, | |
pub name: String, | |
pub id_short: i64, | |
pub short_link: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct ListBefore { | |
pub id: String, | |
pub name: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct ListAfter { | |
pub id: String, | |
pub name: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct TextData { | |
pub emoji: Emoji, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Emoji { | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Checklist { | |
pub id: String, | |
pub name: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct CheckItem { | |
pub id: String, | |
pub name: String, | |
pub state: String, | |
pub text_data: TextData2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct TextData2 { | |
pub emoji: Emoji2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Emoji2 { | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Attachment { | |
pub id: String, | |
pub name: String, | |
pub url: String, | |
pub preview_url: String, | |
pub preview_url2x: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Limits2 { | |
pub reactions: Reactions2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Reactions2 { | |
pub per_action: PerAction2, | |
pub unique_per_action: UniquePerAction2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerAction2 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct UniquePerAction2 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct MemberCreator { | |
pub id: String, | |
pub activity_blocked: bool, | |
pub avatar_hash: String, | |
pub avatar_url: String, | |
pub full_name: String, | |
pub id_member_referrer: Option<String>, | |
pub initials: String, | |
pub non_public: NonPublic, | |
pub non_public_available: bool, | |
pub username: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct NonPublic { | |
pub full_name: Option<String>, | |
pub initials: Option<String>, | |
pub avatar_url: Option<String>, | |
pub avatar_hash: Option<String>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Member2 { | |
pub id: String, | |
pub activity_blocked: bool, | |
pub avatar_hash: String, | |
pub avatar_url: String, | |
pub full_name: String, | |
pub id_member_referrer: Option<String>, | |
pub initials: String, | |
pub non_public: NonPublic2, | |
pub non_public_available: bool, | |
pub username: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct NonPublic2 { | |
pub full_name: Option<String>, | |
pub initials: Option<String>, | |
pub avatar_url: Option<String>, | |
pub avatar_hash: Option<String>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Card2 { | |
pub id: String, | |
pub address: Value, | |
pub badges: Badges, | |
pub check_item_states: Value, | |
pub closed: bool, | |
pub coordinates: Value, | |
pub creation_method: Value, | |
pub due_complete: bool, | |
pub date_last_activity: String, | |
pub desc: String, | |
pub desc_data: Option<DescData>, | |
pub due: Option<String>, | |
pub due_reminder: Option<i64>, | |
pub email: String, | |
pub id_board: String, | |
pub id_checklists: Vec<String>, | |
pub id_labels: Vec<String>, | |
pub id_list: String, | |
pub id_members: Vec<String>, | |
pub id_members_voted: Vec<Value>, | |
pub id_short: i64, | |
pub id_attachment_cover: Option<String>, | |
pub labels: Vec<Label>, | |
pub limits: Limits3, | |
pub location_name: Value, | |
pub manual_cover_attachment: bool, | |
pub name: String, | |
pub pos: f64, | |
pub short_link: String, | |
pub short_url: String, | |
pub static_map_url: Value, | |
pub start: Option<String>, | |
pub subscribed: bool, | |
pub url: String, | |
pub cover: Cover3, | |
pub is_template: bool, | |
pub card_role: Value, | |
pub attachments: Vec<Attachment2>, | |
pub plugin_data: Vec<Value>, | |
pub custom_field_items: Vec<Value>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Badges { | |
pub attachments_by_type: AttachmentsByType, | |
pub location: bool, | |
pub votes: i64, | |
pub viewing_member_voted: bool, | |
pub subscribed: bool, | |
pub fogbugz: String, | |
pub check_items: i64, | |
pub check_items_checked: i64, | |
pub check_items_earliest_due: Value, | |
pub comments: i64, | |
pub attachments: i64, | |
pub description: bool, | |
pub due: Option<String>, | |
pub due_complete: bool, | |
pub start: Option<String>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct AttachmentsByType { | |
pub trello: Trello, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Trello { | |
pub board: i64, | |
pub card: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct DescData { | |
pub emoji: Emoji3, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Emoji3 { | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Label { | |
pub id: String, | |
pub id_board: String, | |
pub name: String, | |
pub color: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Limits3 { | |
pub attachments: Attachments2, | |
pub checklists: Checklists2, | |
pub stickers: Stickers2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Attachments2 { | |
pub per_card: PerCard4, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerCard4 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Checklists2 { | |
pub per_card: PerCard5, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerCard5 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Stickers2 { | |
pub per_card: PerCard6, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerCard6 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Cover3 { | |
pub id_attachment: Option<String>, | |
pub color: Option<String>, | |
pub id_uploaded_background: Value, | |
pub size: String, | |
pub brightness: String, | |
#[serde(default)] | |
pub scaled: Vec<Scaled>, | |
pub edge_color: Option<String>, | |
pub id_plugin: Value, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Scaled { | |
#[serde(rename = "_id")] | |
pub id: String, | |
#[serde(rename = "id")] | |
pub id2: String, | |
pub scaled: bool, | |
pub url: String, | |
pub bytes: i64, | |
pub height: i64, | |
pub width: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Attachment2 { | |
pub bytes: i64, | |
pub date: String, | |
pub edge_color: Option<String>, | |
pub id_member: String, | |
pub is_upload: bool, | |
pub mime_type: String, | |
pub name: String, | |
pub previews: Vec<Preview>, | |
pub url: String, | |
pub pos: i64, | |
pub file_name: String, | |
pub id: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Preview { | |
#[serde(rename = "_id")] | |
pub id: String, | |
#[serde(rename = "id")] | |
pub id2: String, | |
pub scaled: bool, | |
pub url: String, | |
pub bytes: i64, | |
pub height: i64, | |
pub width: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Label2 { | |
pub id: String, | |
pub id_board: String, | |
pub name: String, | |
pub color: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct List2 { | |
pub id: String, | |
pub name: String, | |
pub closed: bool, | |
pub id_board: String, | |
pub pos: i64, | |
pub subscribed: bool, | |
pub soft_limit: Value, | |
pub limits: Limits4, | |
pub creation_method: Value, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Limits4 { | |
pub cards: Cards2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Cards2 { | |
pub open_per_list: OpenPerList2, | |
pub total_per_list: TotalPerList2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct OpenPerList2 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct TotalPerList2 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Member3 { | |
pub id: String, | |
pub aa_id: String, | |
pub activity_blocked: bool, | |
pub avatar_hash: String, | |
pub avatar_url: String, | |
pub bio: String, | |
pub bio_data: Option<BioData>, | |
pub confirmed: bool, | |
pub full_name: String, | |
pub id_enterprise: Value, | |
#[serde(default)] | |
pub id_enterprises_deactivated: Vec<Value>, | |
pub id_member_referrer: Option<String>, | |
pub id_prem_orgs_admin: Vec<Value>, | |
pub initials: String, | |
pub member_type: String, | |
pub non_public: NonPublic3, | |
pub non_public_available: bool, | |
pub products: Vec<Value>, | |
pub url: String, | |
pub username: String, | |
pub status: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct BioData { | |
pub emoji: Emoji4, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Emoji4 { | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct NonPublic3 { | |
pub full_name: Option<String>, | |
pub initials: Option<String>, | |
pub avatar_url: Option<String>, | |
pub avatar_hash: Option<String>, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Checklist2 { | |
pub id: String, | |
pub name: String, | |
pub id_board: String, | |
pub id_card: String, | |
pub pos: i64, | |
pub limits: Limits5, | |
pub check_items: Vec<CheckItem2>, | |
pub creation_method: Value, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Limits5 { | |
pub check_items: CheckItems2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct CheckItems2 { | |
pub per_checklist: PerChecklist2, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct PerChecklist2 { | |
pub status: String, | |
pub disable_at: i64, | |
pub warn_at: i64, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct CheckItem2 { | |
pub id: String, | |
pub name: String, | |
pub name_data: NameData, | |
pub pos: f64, | |
pub state: String, | |
pub due: Value, | |
pub due_reminder: Value, | |
pub id_member: Value, | |
pub id_checklist: String, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct NameData { | |
pub emoji: Emoji5, | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Emoji5 { | |
} | |
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)] | |
#[serde(rename_all = "camelCase")] | |
pub struct Membership { | |
pub id_member: String, | |
pub member_type: String, | |
pub unconfirmed: bool, | |
pub deactivated: bool, | |
pub id: String, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment