pub struct QsIndex {
pub stat: Stat,
pub status: Option<String>,
pub difficulty: Difficulty,
pub paid_only: bool,
pub is_favor: bool,
pub frequency: u32,
pub progress: u32,
}
Expand description
base info of question
Fields§
§stat: Stat
§status: Option<String>
§difficulty: Difficulty
§paid_only: bool
§is_favor: bool
§frequency: u32
§progress: u32
Trait Implementations§
source§impl<'de> Deserialize<'de> for QsIndex
impl<'de> Deserialize<'de> for QsIndex
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl InsertToDB for QsIndex
impl InsertToDB for QsIndex
type Value = String
type Entity = Entity
type Model = Model
type ActiveModel = ActiveModel
fn to_model(&self, category: String) -> Self::Model
source§async fn insert_to_db(&mut self, category: String)
async fn insert_to_db(&mut self, category: String)
Insert with extra logic Read more
fn on_conflict() -> OnConflict
fn to_activemodel(&self, value: Self::Value) -> Self::ActiveModel
source§fn insert_one(&self, info: Self::Value) -> impl Future<Output = ()> + Send
fn insert_one(&self, info: Self::Value) -> impl Future<Output = ()> + Send
Insert One Read more
fn insert_many(value: Vec<Self::ActiveModel>) -> impl Future<Output = ()> + Send
impl Eq for QsIndex
impl StructuralPartialEq for QsIndex
Auto Trait Implementations§
impl Freeze for QsIndex
impl RefUnwindSafe for QsIndex
impl Send for QsIndex
impl Sync for QsIndex
impl Unpin for QsIndex
impl UnwindSafe for QsIndex
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§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