pub struct IndexNowApi { /* private fields */ }
Expand description
API Access Endpoint
Implementations§
Source§impl IndexNowApi
impl IndexNowApi
pub fn new<T: ToString, U: ToString>(host: T, key: U) -> IndexNowApi
pub fn set_search_engine<T: ToString>(&mut self, search_engine: T)
pub fn set_key_location<T: ToString>(&mut self, key_location: T)
pub async fn send_urls<T: ToString>( &self, urls: Vec<T>, ) -> Result<(), GoogleApiError>
Auto Trait Implementations§
impl Freeze for IndexNowApi
impl RefUnwindSafe for IndexNowApi
impl Send for IndexNowApi
impl Sync for IndexNowApi
impl Unpin for IndexNowApi
impl UnwindSafe for IndexNowApi
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