pub struct Analysis {
pub revisions: Vec<RevisionAnalysis>,
pub paragraphs: Vec<ParagraphAnalysis>,
pub sentences: Vec<SentenceAnalysis>,
pub words: Vec<WordAnalysis>,
pub spam_ids: Vec<i32>,
pub revisions_by_id: HashMap<i32, RevisionPointer>,
pub ordered_revisions: Vec<RevisionPointer>,
pub current_revision: RevisionPointer,
/* private fields */
}Fields§
§revisions: Vec<RevisionAnalysis>§paragraphs: Vec<ParagraphAnalysis>§sentences: Vec<SentenceAnalysis>§words: Vec<WordAnalysis>§spam_ids: Vec<i32>Collection of revision IDs that were detected as spam.
These revisions were not analysed and are not included in the revisions,
revisions_by_id and ordered_revisions fields.
revisions_by_id: HashMap<i32, RevisionPointer>Map of revision ID to RevisionData.
Does not contain revisions that were detected as spam.
ordered_revisions: Vec<RevisionPointer>List of revisions in order from oldest to newest.
Does not contain revisions that were detected as spam.
current_revision: RevisionPointerThe current revision being analysed.
After analysis finished this will be the latest revision that was not marked as spam.
Implementations§
Source§impl Analysis
impl Analysis
pub fn analyse_page(xml_revisions: &[Revision]) -> Result<Self, AnalysisError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Analysis
impl RefUnwindSafe for Analysis
impl Send for Analysis
impl Sync for Analysis
impl Unpin for Analysis
impl UnwindSafe for Analysis
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