pub struct Requester {
pub project: String,
pub language: Option<String>,
/* private fields */
}Fields§
§project: String§language: Option<String>Implementations§
Source§impl Requester
impl Requester
pub fn new(project: WikiProject, language: Option<&str>) -> Result<Self>
pub async fn search_title( &self, query: &str, limit: Option<usize>, ) -> Result<Vec<SearchResult>>
pub async fn search_page_content( &self, query: &str, limit: Option<usize>, ) -> Result<Vec<SearchResult>>
pub async fn get_page(&self, title: &str, mode: GetPageMode) -> Result<Page>
pub async fn get_page_languages(&self, title: &str) -> Result<Vec<Language>>
pub async fn get_page_files(&self, title: &str) -> Result<Vec<File>>
pub async fn get_file(&self, title: &str) -> Result<File>
pub async fn get_page_history( &self, title: &str, older_than: Option<usize>, newer_than: Option<usize>, filter: Option<RevisionType>, ) -> Result<PageHistory>
pub async fn get_revision(&self, id: usize) -> Result<Revision>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Requester
impl !UnwindSafe for Requester
impl Freeze for Requester
impl Send for Requester
impl Sync for Requester
impl Unpin for Requester
impl UnsafeUnpin for Requester
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