pub struct SubmissionWithRelations {Show 13 fields
pub id: i64,
pub earned: i64,
pub total: i64,
pub created_at: NaiveDateTime,
pub updated_at: NaiveDateTime,
pub user_id: i64,
pub assignment_id: i64,
pub assignment_name: String,
pub assignment_description: Option<String>,
pub assignment_due_date: NaiveDateTime,
pub module_id: i64,
pub module_code: String,
pub username: String,
}
Fields§
§id: i64
§earned: i64
§total: i64
§created_at: NaiveDateTime
§updated_at: NaiveDateTime
§user_id: i64
§assignment_id: i64
§assignment_name: String
§assignment_description: Option<String>
§assignment_due_date: NaiveDateTime
§module_id: i64
§module_code: String
§username: String
Trait Implementations§
Source§impl Debug for SubmissionWithRelations
impl Debug for SubmissionWithRelations
Source§impl FromQueryResult for SubmissionWithRelations
impl FromQueryResult for SubmissionWithRelations
Source§fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
Instantiate a Model from a [QueryResult] Read more
Source§fn from_query_result_nullable(
row: &QueryResult,
pre: &str,
) -> Result<Self, TryGetError>
fn from_query_result_nullable( row: &QueryResult, pre: &str, ) -> Result<Self, TryGetError>
§fn from_query_result_optional(
res: &QueryResult,
pre: &str,
) -> Result<Option<Self>, DbErr>
fn from_query_result_optional( res: &QueryResult, pre: &str, ) -> Result<Option<Self>, DbErr>
Transform the error from instantiating a Model from a [QueryResult]
and converting it to an Option
§fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
Auto Trait Implementations§
impl Freeze for SubmissionWithRelations
impl RefUnwindSafe for SubmissionWithRelations
impl Send for SubmissionWithRelations
impl Sync for SubmissionWithRelations
impl Unpin for SubmissionWithRelations
impl UnwindSafe for SubmissionWithRelations
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