pub struct Site {
pub name: String,
pub url: String,
pub pages: Vec<Page>,
}
Expand description
Represents a Mediawiki website, like Wikipedia, for example.
Fields§
§name: String
The name of the website, e.g., “Wikipedia”.
url: String
The base URL of the website, e.g., “https://en.wikipedia.org/wiki/Main_Page”.
pages: Vec<Page>
The wiki pages belonging to the website.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnwindSafe for Site
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