Skip to content
Merged
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
2 changes: 1 addition & 1 deletion wp_api/src/jetpack/endpoint/connection_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ enum ConnectionRequest {
}

impl DerivedRequest for ConnectionRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
JetpackNamespace {}
}
}
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ pub trait DerivedRequest {
Vec::new()
}

fn namespace() -> impl AsNamespace;
fn namespace(&self) -> impl AsNamespace;
}

pub trait AsNamespace: Send + Sync {
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/api_root_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum ApiRootRequest {
}

impl DerivedRequest for ApiRootRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::None
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ enum ApplicationPasswordsRequest {
}

impl DerivedRequest for ApplicationPasswordsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/comments_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl DerivedRequest for CommentsRequest {
}
}

fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/media_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl DerivedRequest for MediaRequest {
}
}

fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/menu_locations_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum MenuLocationsRequest {
}

impl DerivedRequest for MenuLocationsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum NavMenuItemAutosavesRequest {
}

impl DerivedRequest for NavMenuItemAutosavesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/nav_menu_items_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl DerivedRequest for NavMenuItemsRequest {
}
}

fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/nav_menus_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl DerivedRequest for NavMenusRequest {
}
}

fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ enum NavigationAutosavesRequest {
}

impl DerivedRequest for NavigationAutosavesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum NavigationRevisionsRequest {
}

impl DerivedRequest for NavigationRevisionsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}

Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/navigations_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ impl DerivedRequest for NavigationsRequest {
}
}

fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/plugins_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ enum PluginsRequest {
}

impl DerivedRequest for PluginsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/post_autosaves_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum AutosavesRequest {
}

impl DerivedRequest for AutosavesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/post_revisions_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ enum PostRevisionsRequest {
}

impl DerivedRequest for PostRevisionsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}

Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/post_statuses_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum PostStatusesRequest {
}

impl DerivedRequest for PostStatusesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/post_types_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum PostTypesRequest {
}

impl DerivedRequest for PostTypesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/posts_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ impl DerivedRequest for PostsRequest {
}
}

fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/search_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enum SearchRequest {
}

impl DerivedRequest for SearchRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/site_settings_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ enum SiteSettingsRequest {
}

impl DerivedRequest for SiteSettingsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/taxonomies_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum TaxonomiesRequest {
}

impl DerivedRequest for TaxonomiesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/templates_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl DerivedRequest for TemplatesRequest {
}
}

fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/terms_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl DerivedRequest for TermsRequest {
}
}

fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/themes_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum ThemesRequest {
}

impl DerivedRequest for ThemesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/users_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ enum UsersRequest {
}

impl DerivedRequest for UsersRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/widget_types_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum WidgetTypesRequest {
}

impl DerivedRequest for WidgetTypesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/widgets_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl DerivedRequest for WidgetsRequest {
}
}

fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpV2
}
}
2 changes: 1 addition & 1 deletion wp_api/src/request/endpoint/wp_block_editor_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ enum WpBlockEditorRequest {
}

impl DerivedRequest for WpBlockEditorRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpBlockEditorV1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ enum WpSiteHealthTestsRequest {
}

impl DerivedRequest for WpSiteHealthTestsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpNamespace::WpSiteHealthV1
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/domains_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum DomainsRequest {
}

impl DerivedRequest for DomainsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_1
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/followers_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ enum FollowersRequest {
}

impl DerivedRequest for FollowersRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_1
}
}
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/jetpack_connection_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum JetpackConnectionRequest {
}

impl DerivedRequest for JetpackConnectionRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::V2
}
}
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/languages_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ enum LanguagesRequest {
}

impl DerivedRequest for LanguagesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::V2
}
}
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/me_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ enum MeRequest {
}

impl DerivedRequest for MeRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_1
}
}
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/oauth2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ enum Oauth2Request {
}

impl DerivedRequest for Oauth2Request {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::Oauth2
}
}
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/segments_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ enum SegmentsRequest {
}

impl DerivedRequest for SegmentsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::V2
}
}
Expand Down
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/sites_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ enum SitesRequest {
}

impl DerivedRequest for SitesRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_2
}
}
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/stats_city_views_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum StatsCityViewsRequest {
}

impl DerivedRequest for StatsCityViewsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_1
}
}
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/stats_clicks_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum StatsClicksRequest {
}

impl DerivedRequest for StatsClicksRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_1
}
}
2 changes: 1 addition & 1 deletion wp_api/src/wp_com/endpoint/stats_country_views_endpoint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum StatsCountryViewsRequest {
}

impl DerivedRequest for StatsCountryViewsRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum StatsDevicesBrowserRequest {
}

impl DerivedRequest for StatsDevicesBrowserRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum StatsDevicesPlatformRequest {
}

impl DerivedRequest for StatsDevicesPlatformRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_1
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ enum StatsDevicesScreensizeRequest {
}

impl DerivedRequest for StatsDevicesScreensizeRequest {
fn namespace() -> impl AsNamespace {
fn namespace(&self) -> impl AsNamespace {
WpComNamespace::RestV1_1
}
}
Loading