pub struct MossService { /* private fields */ }
Expand description
A service for interacting with the MOSS (Measure of Software Similarity) server.
Implementations§
Source§impl MossService
impl MossService
Sourcepub async fn run(
&self,
base_files: Vec<PathBuf>,
submission_files: Vec<(PathBuf, Option<String>, Option<i64>)>,
language: &str,
) -> Result<String, String>
pub async fn run( &self, base_files: Vec<PathBuf>, submission_files: Vec<(PathBuf, Option<String>, Option<i64>)>, language: &str, ) -> Result<String, String>
Runs a MOSS check by uploading base files and submission files to the MOSS server.
§Arguments
base_files
- A list of files to be used as the base for comparison (template/starter code).submission_files
- A list of tuples containing (file_path, optional_username) for submissions.language
- The programming language of the files.
§Returns
A Result
containing the MOSS report URL on success, or an error message on failure.
Auto Trait Implementations§
impl Freeze for MossService
impl RefUnwindSafe for MossService
impl Send for MossService
impl Sync for MossService
impl Unpin for MossService
impl UnwindSafe for MossService
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more