pub struct CrateOverview {
pub name: String,
pub version: String,
pub date: String,
pub total_downloads: i64,
pub description: Option<String>,
pub documentation: Option<String>,
pub is_cache: bool,
}Fields§
§name: String§version: String§date: String§total_downloads: i64§description: Option<String>§documentation: Option<String>§is_cache: boolTrait Implementations§
Source§impl Clone for CrateOverview
impl Clone for CrateOverview
Source§fn clone(&self) -> CrateOverview
fn clone(&self) -> CrateOverview
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for CrateOverview
impl ComposeSchema for CrateOverview
Source§impl Debug for CrateOverview
impl Debug for CrateOverview
Source§impl Default for CrateOverview
impl Default for CrateOverview
Source§fn default() -> CrateOverview
fn default() -> CrateOverview
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CrateOverview
impl<'de> Deserialize<'de> for CrateOverview
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 FromQueryResult for CrateOverview
impl FromQueryResult for CrateOverview
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>
Transform the error from instantiating a Model from a QueryResult
and converting it to an Option Read more
Source§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
Source§fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
Source§impl PartialEq for CrateOverview
impl PartialEq for CrateOverview
Source§impl Serialize for CrateOverview
impl Serialize for CrateOverview
Source§impl ToSchema for CrateOverview
impl ToSchema for CrateOverview
impl Eq for CrateOverview
impl StructuralPartialEq for CrateOverview
Auto Trait Implementations§
impl Freeze for CrateOverview
impl RefUnwindSafe for CrateOverview
impl Send for CrateOverview
impl Sync for CrateOverview
impl Unpin for CrateOverview
impl UnsafeUnpin for CrateOverview
impl UnwindSafe for CrateOverview
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§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