pub struct LinkedItem {Show 13 fields
pub item_id: Uuid,
pub number: String,
pub item_type: String,
pub name: String,
pub latest_revision_id: Uuid,
pub latest_code: String,
pub latest_state: String,
pub note: String,
pub created_by_name: String,
pub created_at: DateTime<Utc>,
pub two_way: bool,
pub project_id: Option<Uuid>,
pub restricted: bool,
}Expand description
An item linked to another one as alternate, successor or predecessor, with the data of its latest revision.
Fields§
§item_id: Uuid§number: String§item_type: String§name: String§latest_revision_id: Uuid§latest_code: String§latest_state: String§note: String§created_by_name: String§created_at: DateTime<Utc>§two_way: boolAlternates only: the reverse direction exists too.
project_id: Option<Uuid>§restricted: boolThe item is in a group the actor may not read; everything but the
note-free placeholder is blanked (see LinkedItem::mask).
Trait Implementations§
Source§impl Clone for LinkedItem
impl Clone for LinkedItem
Source§impl Debug for LinkedItem
impl Debug for LinkedItem
Source§impl<'a, R: Row> FromRow<'a, R> for LinkedItemwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Option<Uuid>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for LinkedItemwhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Option<Uuid>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for LinkedItem
impl RefUnwindSafe for LinkedItem
impl Send for LinkedItem
impl Sync for LinkedItem
impl Unpin for LinkedItem
impl UnsafeUnpin for LinkedItem
impl UnwindSafe for LinkedItem
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.