Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion wp_api/src/menu_locations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use wp_contextual::WpContextual;
wp_content_string_id!(MenuLocation);

#[derive(Debug, Serialize, Deserialize, uniffi::Record, WpContextual)]
#[serde(transparent)]
pub struct SparseMenuLocationsResponse {
#[serde(flatten)]
#[WpContext(edit, embed, view)]
Expand Down
1 change: 0 additions & 1 deletion wp_api/src/post_statuses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ use std::{collections::HashMap, fmt::Display};
use wp_contextual::WpContextual;

#[derive(Debug, Serialize, Deserialize, uniffi::Record, WpContextual)]
#[serde(transparent)]
pub struct SparsePostStatusesResponse {
#[serde(flatten)]
#[WpContext(edit, embed, view)]
Expand Down
3 changes: 0 additions & 3 deletions wp_api/src/post_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ impl PostTypeDetailsWithEditContext {
}

#[derive(Debug, Serialize, Deserialize, uniffi::Record, WpContextual)]
#[serde(transparent)]
pub struct SparsePostTypesResponse {
#[serde(flatten)]
#[WpContext(edit, embed, view)]
Expand Down Expand Up @@ -100,11 +99,9 @@ pub struct SparsePostTypeDetails {
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, uniffi::Record)]
#[serde(transparent)]
pub struct PostTypeSupportsMap {
#[serde(deserialize_with = "deserialize_empty_array_or_hashmap")]
#[serde(flatten)]
#[serde(rename = "supports")]
pub map: HashMap<PostTypeSupports, JsonValue>,
}

Expand Down
1 change: 0 additions & 1 deletion wp_api/src/taxonomies.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ pub struct TaxonomyListParams {
}

#[derive(Debug, Serialize, Deserialize, uniffi::Record, WpContextual)]
#[serde(transparent)]
pub struct SparseTaxonomyTypesResponse {
#[serde(flatten)]
#[WpContext(edit, embed, view)]
Expand Down
2 changes: 0 additions & 2 deletions wp_api/src/users.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,11 +261,9 @@ pub enum UserCapability {
impl_as_query_value_from_to_string!(UserCapability);

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, uniffi::Record)]
#[serde(transparent)]
pub struct UserCapabilitiesMap {
#[serde(deserialize_with = "wp_serde_helper::deserialize_empty_array_or_hashmap")]
#[serde(flatten)]
#[serde(rename = "capabilities")]
pub map: HashMap<UserCapability, JsonValue>,
}

Expand Down