pub struct YandexWebmasterClient { /* private fields */ }Expand description
Client for interacting with the Yandex Webmaster API
Implementations§
Source§impl YandexWebmasterClient
impl YandexWebmasterClient
Sourcepub async fn with_client(
oauth_token: String,
client: ClientBuilder,
) -> Result<Self>
pub async fn with_client( oauth_token: String, client: ClientBuilder, ) -> Result<Self>
Sourcepub async fn add_host(
&self,
host_url: &str,
verification_type: VerificationType,
) -> Result<AddHostResponse>
pub async fn add_host( &self, host_url: &str, verification_type: VerificationType, ) -> Result<AddHostResponse>
Add a new site
Sourcepub async fn get_host(&self, host_id: &str) -> Result<FullHostInfo>
pub async fn get_host(&self, host_id: &str) -> Result<FullHostInfo>
Get information about a specific site
Sourcepub async fn delete_host(&self, host_id: &str) -> Result<()>
pub async fn delete_host(&self, host_id: &str) -> Result<()>
Delete a site
Sourcepub async fn get_verification_status(
&self,
host_id: &str,
) -> Result<HostVerificationResponse>
pub async fn get_verification_status( &self, host_id: &str, ) -> Result<HostVerificationResponse>
Get verification status for a site
Sourcepub async fn verify_host(
&self,
host_id: &str,
verification_type: ExplicitVerificationType,
) -> Result<HostVerificationResponse>
pub async fn verify_host( &self, host_id: &str, verification_type: ExplicitVerificationType, ) -> Result<HostVerificationResponse>
Initiate verification procedure for a site
Sourcepub async fn get_owners(&self, host_id: &str) -> Result<Vec<Owner>>
pub async fn get_owners(&self, host_id: &str) -> Result<Vec<Owner>>
Get list of verified owners for a site
Sourcepub async fn get_host_summary(
&self,
host_id: &str,
) -> Result<HostSummaryResponse>
pub async fn get_host_summary( &self, host_id: &str, ) -> Result<HostSummaryResponse>
Get site summary statistics
Sourcepub async fn get_sqi_history(
&self,
host_id: &str,
req: SqiHistoryRequest,
) -> Result<Vec<SqiPoint>>
pub async fn get_sqi_history( &self, host_id: &str, req: SqiHistoryRequest, ) -> Result<Vec<SqiPoint>>
Get site quality index history
Sourcepub async fn get_popular_queries(
&self,
host_id: &str,
request: &PopularQueriesRequest,
) -> Result<PopularQueriesResponse>
pub async fn get_popular_queries( &self, host_id: &str, request: &PopularQueriesRequest, ) -> Result<PopularQueriesResponse>
Get popular search queries for a site
Sourcepub async fn get_query_analytics(
&self,
host_id: &str,
request: &QueryAnalyticsRequest,
) -> Result<QueryAnalyticsResponse>
pub async fn get_query_analytics( &self, host_id: &str, request: &QueryAnalyticsRequest, ) -> Result<QueryAnalyticsResponse>
Get overall query statistics history
Sourcepub async fn get_query_history(
&self,
host_id: &str,
query_id: &str,
request: &QueryHistoryRequest,
) -> Result<QueryHistoryResponse>
pub async fn get_query_history( &self, host_id: &str, query_id: &str, request: &QueryHistoryRequest, ) -> Result<QueryHistoryResponse>
Get statistics for a specific query
Sourcepub async fn get_sitemaps(
&self,
host_id: &str,
request: &GetSitemapsRequest,
) -> Result<SitemapsResponse>
pub async fn get_sitemaps( &self, host_id: &str, request: &GetSitemapsRequest, ) -> Result<SitemapsResponse>
Get list of all sitemap files
Sourcepub async fn get_sitemap(
&self,
host_id: &str,
sitemap_id: &str,
) -> Result<SitemapInfo>
pub async fn get_sitemap( &self, host_id: &str, sitemap_id: &str, ) -> Result<SitemapInfo>
Get details of a specific sitemap
Sourcepub async fn get_user_sitemaps(
&self,
host_id: &str,
request: &GetUserSitemapsRequest,
) -> Result<UserSitemapsResponse>
pub async fn get_user_sitemaps( &self, host_id: &str, request: &GetUserSitemapsRequest, ) -> Result<UserSitemapsResponse>
Get list of user-submitted sitemaps
Sourcepub async fn add_sitemap(
&self,
host_id: &str,
url: &str,
) -> Result<AddSitemapResponse>
pub async fn add_sitemap( &self, host_id: &str, url: &str, ) -> Result<AddSitemapResponse>
Add a new sitemap file
Sourcepub async fn get_user_sitemap(
&self,
host_id: &str,
sitemap_id: &str,
) -> Result<UserSitemapInfo>
pub async fn get_user_sitemap( &self, host_id: &str, sitemap_id: &str, ) -> Result<UserSitemapInfo>
Get user-submitted sitemap details
Sourcepub async fn delete_sitemap(
&self,
host_id: &str,
sitemap_id: &str,
) -> Result<()>
pub async fn delete_sitemap( &self, host_id: &str, sitemap_id: &str, ) -> Result<()>
Delete a user-submitted sitemap
Sourcepub async fn get_indexing_history(
&self,
host_id: &str,
request: &IndexingHistoryRequest,
) -> Result<IndexingHistoryResponse>
pub async fn get_indexing_history( &self, host_id: &str, request: &IndexingHistoryRequest, ) -> Result<IndexingHistoryResponse>
Get indexing history
Sourcepub async fn get_indexing_samples(
&self,
host_id: &str,
request: &GetIndexingSamplesRequest,
) -> Result<IndexingSamplesResponse>
pub async fn get_indexing_samples( &self, host_id: &str, request: &GetIndexingSamplesRequest, ) -> Result<IndexingSamplesResponse>
Get sample indexed pages
Sourcepub async fn get_search_urls_history(
&self,
host_id: &str,
request: &IndexingHistoryRequest,
) -> Result<SearchUrlsHistoryResponse>
pub async fn get_search_urls_history( &self, host_id: &str, request: &IndexingHistoryRequest, ) -> Result<SearchUrlsHistoryResponse>
Get pages in search history
Sourcepub async fn get_search_urls_samples(
&self,
host_id: &str,
request: &GetSearchUrlsSamplesRequest,
) -> Result<SearchUrlsSamplesResponse>
pub async fn get_search_urls_samples( &self, host_id: &str, request: &GetSearchUrlsSamplesRequest, ) -> Result<SearchUrlsSamplesResponse>
Get sample pages in search
Sourcepub async fn get_search_events_history(
&self,
host_id: &str,
request: &IndexingHistoryRequest,
) -> Result<SearchEventsHistoryResponse>
pub async fn get_search_events_history( &self, host_id: &str, request: &IndexingHistoryRequest, ) -> Result<SearchEventsHistoryResponse>
Get page appearance/removal history
Sourcepub async fn get_search_events_samples(
&self,
host_id: &str,
request: &GetSearchEventsSamplesRequest,
) -> Result<SearchEventsSamplesResponse>
pub async fn get_search_events_samples( &self, host_id: &str, request: &GetSearchEventsSamplesRequest, ) -> Result<SearchEventsSamplesResponse>
Get sample page changes
Sourcepub async fn get_important_urls(
&self,
host_id: &str,
) -> Result<ImportantUrlsResponse>
pub async fn get_important_urls( &self, host_id: &str, ) -> Result<ImportantUrlsResponse>
Get list of important URLs
Sourcepub async fn get_important_urls_history(
&self,
host_id: &str,
url_param: &str,
) -> Result<ImportantUrlHistoryResponse>
pub async fn get_important_urls_history( &self, host_id: &str, url_param: &str, ) -> Result<ImportantUrlHistoryResponse>
Get important URLs history
Sourcepub async fn recrawl_urls(
&self,
host_id: &str,
url: &str,
) -> Result<RecrawlResponse>
pub async fn recrawl_urls( &self, host_id: &str, url: &str, ) -> Result<RecrawlResponse>
Request page recrawl
Sourcepub async fn get_recrawl_tasks(
&self,
host_id: &str,
request: &GetRecrawlTasksRequest,
) -> Result<RecrawlTasksResponse>
pub async fn get_recrawl_tasks( &self, host_id: &str, request: &GetRecrawlTasksRequest, ) -> Result<RecrawlTasksResponse>
Get list of recrawl tasks
Sourcepub async fn get_recrawl_task(
&self,
host_id: &str,
task_id: &str,
) -> Result<RecrawlTask>
pub async fn get_recrawl_task( &self, host_id: &str, task_id: &str, ) -> Result<RecrawlTask>
Get recrawl task status
Sourcepub async fn get_recrawl_quota(
&self,
host_id: &str,
) -> Result<RecrawlQuotaResponse>
pub async fn get_recrawl_quota( &self, host_id: &str, ) -> Result<RecrawlQuotaResponse>
Get recrawl quota
Sourcepub async fn get_broken_links(
&self,
host_id: &str,
request: &BrokenLinksRequest,
) -> Result<BrokenLinksResponse>
pub async fn get_broken_links( &self, host_id: &str, request: &BrokenLinksRequest, ) -> Result<BrokenLinksResponse>
Get broken internal links samples
Sourcepub async fn get_broken_links_history(
&self,
host_id: &str,
request: &BrokenLinkHistoryRequest,
) -> Result<BrokenLinkHistoryResponse>
pub async fn get_broken_links_history( &self, host_id: &str, request: &BrokenLinkHistoryRequest, ) -> Result<BrokenLinkHistoryResponse>
Get broken links history
Sourcepub async fn get_external_links(
&self,
host_id: &str,
request: &ExternalLinksRequest,
) -> Result<ExternalLinksResponse>
pub async fn get_external_links( &self, host_id: &str, request: &ExternalLinksRequest, ) -> Result<ExternalLinksResponse>
Get external backlinks samples
Sourcepub async fn get_external_links_history(
&self,
host_id: &str,
) -> Result<ExternalLinksHistoryResponse>
pub async fn get_external_links_history( &self, host_id: &str, ) -> Result<ExternalLinksHistoryResponse>
Get backlinks history
Sourcepub async fn get_diagnostics(
&self,
host_id: &str,
) -> Result<DiagnosticsResponse>
pub async fn get_diagnostics( &self, host_id: &str, ) -> Result<DiagnosticsResponse>
Get site diagnostic report
Trait Implementations§
Source§impl Clone for YandexWebmasterClient
impl Clone for YandexWebmasterClient
Source§fn clone(&self) -> YandexWebmasterClient
fn clone(&self) -> YandexWebmasterClient
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more