pub struct Holdings {Show 15 fields
pub user_id: Uuid,
pub username: String,
pub display_name: String,
pub active: bool,
pub last_login_at: Option<DateTime<Utc>>,
pub scope: &'static str,
pub checkouts: Listed<HeldRevision>,
pub hidden_checkouts: Vec<GroupCount>,
pub authored_changes: Listed<HeldChange>,
pub pending_reviews: Listed<HeldChange>,
pub assigned_requests: Listed<HeldRequest>,
pub raised_requests: Listed<HeldRequest>,
pub owned_items: Listed<HeldItem>,
pub memberships: Vec<HeldMembership>,
pub tokens: Option<Vec<ApiToken>>,
}Expand description
Everything the viewer may know about what a user still holds.
Fields§
§user_id: Uuid§username: String§display_name: String§active: bool§last_login_at: Option<DateTime<Utc>>§scope: &'static strall for administrators, managed for a manager (only the groups
they manage).
checkouts: Listed<HeldRevision>Administrators only: check-outs in groups that hide their content from them, as a count per group.
Change orders the user wrote: draft, in review or rejected.
pending_reviews: Listed<HeldChange>Change orders that wait for the user’s review.
assigned_requests: Listed<HeldRequest>Open change requests assigned to the user.
raised_requests: Listed<HeldRequest>Open change requests the user raised.
owned_items: Listed<HeldItem>§memberships: Vec<HeldMembership>§tokens: Option<Vec<ApiToken>>Administrators only (never the secret, see models::ApiToken).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Holdings
impl RefUnwindSafe for Holdings
impl Send for Holdings
impl Sync for Holdings
impl Unpin for Holdings
impl UnsafeUnpin for Holdings
impl UnwindSafe for Holdings
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.