pub struct NotecardView {Show 14 fields
pub notecard_id: Uuid,
pub destination: Destination,
pub uploaded_by: Option<Uuid>,
pub uploaded_by_username: Option<String>,
pub uploaded_by_legacy_name: Option<String>,
pub name: String,
pub created_at: DateTime<Utc>,
pub start_region: Option<String>,
pub end_region: Option<String>,
pub waypoint_count: Option<u32>,
pub lower_left_x: Option<u16>,
pub lower_left_y: Option<u16>,
pub upper_right_x: Option<u16>,
pub upper_right_y: Option<u16>,
}Expand description
Public, serializable record of a saved notecard.
Fields§
§notecard_id: Uuidthe notecard’s identifier.
destination: Destinationthe destination the notecard belongs to.
uploaded_by: Option<Uuid>the avatar that uploaded the notecard, or None if that
account has since been deleted (the FK is ON DELETE SET NULL,
so audit history survives the account removal but the link is
severed).
uploaded_by_username: Option<String>the uploader’s username, if the account still exists.
uploaded_by_legacy_name: Option<String>the uploader’s legacy name, if the account still exists.
name: Stringthe human-supplied display name of the notecard.
created_at: DateTime<Utc>when the notecard was saved.
start_region: Option<String>the region name of the route’s first waypoint, if the notecard body parses and has at least one waypoint.
end_region: Option<String>the region name of the route’s last waypoint, if the notecard body parses and has at least one waypoint.
waypoint_count: Option<u32>number of waypoints in the route, if the notecard body parses.
lower_left_x: Option<u16>lower-left x grid coordinate of the route’s bounding box, if it has been resolved by a previous render run.
lower_left_y: Option<u16>lower-left y grid coordinate of the route’s bounding box.
upper_right_x: Option<u16>upper-right x grid coordinate of the route’s bounding box.
upper_right_y: Option<u16>upper-right y grid coordinate of the route’s bounding box.
Trait Implementations§
Source§impl Clone for NotecardView
impl Clone for NotecardView
Source§fn clone(&self) -> NotecardView
fn clone(&self) -> NotecardView
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 NotecardView
impl Debug for NotecardView
Auto Trait Implementations§
impl Freeze for NotecardView
impl RefUnwindSafe for NotecardView
impl Send for NotecardView
impl Sync for NotecardView
impl Unpin for NotecardView
impl UnsafeUnpin for NotecardView
impl UnwindSafe for NotecardView
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.