pub struct ItemSummary {Show 14 fields
pub id: Uuid,
pub number: String,
pub item_type: String,
pub unit: String,
pub project_code: Option<String>,
pub created_at: DateTime<Utc>,
pub latest_revision_id: Uuid,
pub latest_code: String,
pub latest_state: String,
pub name: String,
pub released_code: Option<String>,
pub matched_file: Option<String>,
pub classification: String,
pub attributes: Value,
}Expand description
One row of the item search result, combined with its latest revision.
Fields§
§id: Uuid§number: String§item_type: String§unit: String§project_code: Option<String>§created_at: DateTime<Utc>§latest_revision_id: Uuid§latest_code: String§latest_state: String§name: String§released_code: Option<String>Newest released revision, if any (e.g. to fetch released files).
matched_file: Option<String>When searching: a file whose name or content matched.
classification: Stringmake, purchased or standard.
attributes: ValueCustom attribute values of the latest revision.
Trait Implementations§
Source§impl Clone for ItemSummary
impl Clone for ItemSummary
Source§impl Debug for ItemSummary
impl Debug for ItemSummary
Source§impl<'a, R: Row> FromRow<'a, R> for ItemSummarywhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Value: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for ItemSummarywhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Value: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for ItemSummary
impl RefUnwindSafe for ItemSummary
impl Send for ItemSummary
impl Sync for ItemSummary
impl Unpin for ItemSummary
impl UnsafeUnpin for ItemSummary
impl UnwindSafe for ItemSummary
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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 moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.