pub struct SavedGridRectangleSettings {Show 16 fields
pub lower_left_x: u32,
pub lower_left_y: u32,
pub upper_right_x: u32,
pub upper_right_y: u32,
pub max_width: u32,
pub max_height: u32,
pub missing_map_tile_color: Option<String>,
pub missing_region_color: Option<String>,
pub format: String,
pub draw_region_rectangles: bool,
pub draw_region_names: bool,
pub draw_region_coordinates: bool,
pub region_label_font_id: Option<String>,
pub glw: Option<GlwRenderOptions>,
pub labels: Vec<TextLabel>,
pub logos: Vec<LogoPlacement>,
}Expand description
Persisted form fields for a grid-rectangle render.
Fields§
§lower_left_x: u32lower-left x grid coordinate.
lower_left_y: u32lower-left y grid coordinate.
upper_right_x: u32upper-right x grid coordinate.
upper_right_y: u32upper-right y grid coordinate.
max_width: u32max output width in pixels.
max_height: u32max output height in pixels.
missing_map_tile_color: Option<String>optional hex colour string for missing map tiles.
missing_region_color: Option<String>optional hex colour string for missing regions.
format: Stringoutput format (png / jpeg).
draw_region_rectangles: booldraw a hairline rectangle around each region.
draw_region_names: booldraw each region’s name in its lower-left corner.
draw_region_coordinates: booldraw each region’s (x, y) grid coordinates above its name.
region_label_font_id: Option<String>id of the font used for region names / coordinates.
glw: Option<GlwRenderOptions>GLW overlay used for the render. When set, the carrier is always
GlwSource::SavedId so Regenerate reliably points at a row in
saved_glw_data instead of refetching from the GLW server.
labels: Vec<TextLabel>free-floating text labels drawn on the render.
logos: Vec<LogoPlacement>logo images composited on the render.
Trait Implementations§
Source§impl Clone for SavedGridRectangleSettings
impl Clone for SavedGridRectangleSettings
Source§fn clone(&self) -> SavedGridRectangleSettings
fn clone(&self) -> SavedGridRectangleSettings
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 SavedGridRectangleSettings
impl Debug for SavedGridRectangleSettings
Source§impl<'de> Deserialize<'de> for SavedGridRectangleSettings
impl<'de> Deserialize<'de> for SavedGridRectangleSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for SavedGridRectangleSettings
impl RefUnwindSafe for SavedGridRectangleSettings
impl Send for SavedGridRectangleSettings
impl Sync for SavedGridRectangleSettings
impl Unpin for SavedGridRectangleSettings
impl UnsafeUnpin for SavedGridRectangleSettings
impl UnwindSafe for SavedGridRectangleSettings
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.