pub struct RenderView {Show 20 fields
pub render_id: Uuid,
pub destination: Destination,
pub created_by: Option<Uuid>,
pub created_by_username: Option<String>,
pub created_by_legacy_name: Option<String>,
pub notecard_id: Option<Uuid>,
pub notecard_name: Option<String>,
pub kind: String,
pub status: String,
pub error_message: Option<String>,
pub created_at: DateTime<Utc>,
pub finished_at: Option<DateTime<Utc>>,
pub has_without_route: bool,
pub content_type: Option<String>,
pub lower_left_x: Option<u16>,
pub lower_left_y: Option<u16>,
pub upper_right_x: Option<u16>,
pub upper_right_y: Option<u16>,
pub glw_data_id: Option<Uuid>,
pub glw_data_name: Option<String>,
}Expand description
Public, serializable record of a saved render.
Fields§
§render_id: Uuidthe render’s identifier.
destination: Destinationthe destination the render belongs to.
created_by: Option<Uuid>the avatar that started the render, or None if that account
has since been deleted (the FK is ON DELETE SET NULL).
created_by_username: Option<String>the creator’s username, if the account still exists.
created_by_legacy_name: Option<String>the creator’s legacy name, if the account still exists.
notecard_id: Option<Uuid>the linked saved notecard, if any (USB-notecard renders only).
notecard_name: Option<String>the display name of the linked saved notecard, if any. Mirrors
notecard_id — both are Some for USB-notecard renders and both
are None for grid renders. (The ON DELETE RESTRICT on the FK
means a notecard cannot be deleted while a render references it,
so the name is always resolvable when the id is set.)
kind: Stringwhat the render was launched from.
status: Stringcurrent status: in_progress, done, or failed.
error_message: Option<String>error message if status == "failed".
created_at: DateTime<Utc>when the row was created (submit time).
finished_at: Option<DateTime<Utc>>when the row reached a terminal state.
has_without_route: boolwhether a without-route variant is available for download.
content_type: Option<String>the content type of the stored image.
lower_left_x: Option<u16>lower-left x grid coordinate of the rendered rectangle, if known. Always set for grid-rectangle renders; set for usb-notecard renders once the background job has resolved the notecard’s region names.
lower_left_y: Option<u16>lower-left y grid coordinate of the rendered rectangle, if known.
upper_right_x: Option<u16>upper-right x grid coordinate of the rendered rectangle, if known.
upper_right_y: Option<u16>upper-right y grid coordinate of the rendered rectangle, if known.
glw_data_id: Option<Uuid>the linked saved GLW data row, if any. Some for renders
produced with a GLW overlay; None for plain renders. The
ON DELETE RESTRICT on the FK means a GLW row cannot be
deleted while a render references it, so the name is always
resolvable when the id is set.
glw_data_name: Option<String>the display name of the linked GLW data row, mirroring
Self::glw_data_id.
Trait Implementations§
Source§impl Clone for RenderView
impl Clone for RenderView
Source§fn clone(&self) -> RenderView
fn clone(&self) -> RenderView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RenderView
impl Debug for RenderView
Auto Trait Implementations§
impl Freeze for RenderView
impl RefUnwindSafe for RenderView
impl Send for RenderView
impl Sync for RenderView
impl Unpin for RenderView
impl UnsafeUnpin for RenderView
impl UnwindSafe for RenderView
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
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,
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.