pub struct SitesApi;Expand description
Implementations§
Source§impl SitesApi
impl SitesApi
Sourcepub async fn add(
&self,
token: &str,
site_url: &str,
) -> Result<Value, GoogleApiError>
pub async fn add( &self, token: &str, site_url: &str, ) -> Result<Value, GoogleApiError>
Add a site to Search Console.
§Arguments
token- OAuth2 access tokensite_url- URL of the site to add
Sourcepub async fn delete(
&self,
token: &str,
site_url: &str,
) -> Result<Value, GoogleApiError>
pub async fn delete( &self, token: &str, site_url: &str, ) -> Result<Value, GoogleApiError>
Remove a site from Search Console.
§Arguments
token- OAuth2 access tokensite_url- URL of the site to remove
Sourcepub async fn get(
&self,
token: &str,
site_url: &str,
) -> Result<ResponseSiteApi, GoogleApiError>
pub async fn get( &self, token: &str, site_url: &str, ) -> Result<ResponseSiteApi, GoogleApiError>
Get information about a specific site.
§Arguments
token- OAuth2 access tokensite_url- URL of the site
Sourcepub async fn list(
&self,
token: &str,
) -> Result<ResponseSiteListApi, GoogleApiError>
pub async fn list( &self, token: &str, ) -> Result<ResponseSiteListApi, GoogleApiError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SitesApi
impl RefUnwindSafe for SitesApi
impl Send for SitesApi
impl Sync for SitesApi
impl Unpin for SitesApi
impl UnsafeUnpin for SitesApi
impl UnwindSafe for SitesApi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more