|
|
|
@ -13,7 +13,7 @@ use crate::api_core::adding_urls::{
|
|
|
|
|
};
|
|
|
|
|
use crate::api_core::common::{FileIdentifier, FileMetadataInfo, FileRecord};
|
|
|
|
|
use crate::api_core::managing_pages::{
|
|
|
|
|
GetPageInfo, GetPageInfoResponse, GetPages, GetPagesResponse,
|
|
|
|
|
FocusPage, FocusPageRequest, GetPageInfo, GetPageInfoResponse, GetPages, GetPagesResponse,
|
|
|
|
|
};
|
|
|
|
|
use crate::api_core::searching_and_fetching_files::{
|
|
|
|
|
FileMetadata, FileMetadataResponse, FileSearchLocation, GetFile, SearchFiles,
|
|
|
|
@ -321,4 +321,14 @@ impl Client {
|
|
|
|
|
self.get_and_parse::<GetPageInfo, [(&str, &str)]>(&[("page_key", page_key.as_ref())])
|
|
|
|
|
.await
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Focuses a page in the client
|
|
|
|
|
pub async fn focus_page<S: ToString>(&self, page_key: S) -> Result<()> {
|
|
|
|
|
self.post::<FocusPage>(FocusPageRequest {
|
|
|
|
|
page_key: page_key.to_string(),
|
|
|
|
|
})
|
|
|
|
|
.await?;
|
|
|
|
|
|
|
|
|
|
Ok(())
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|