pub struct GridRectangleRequest {Show 18 fields
pub lower_left_x: u16,
pub lower_left_y: u16,
pub upper_right_x: u16,
pub upper_right_y: u16,
pub max_width: u32,
pub max_height: u32,
pub missing_map_tile_color: Option<String>,
pub missing_region_color: Option<String>,
pub format: OutputFormat,
pub draw_region_rectangles: bool,
pub draw_region_names: bool,
pub draw_region_coordinates: bool,
pub region_label_font_id: Option<String>,
pub save_to: Option<String>,
pub glw: Option<GlwRenderOptions>,
pub labels: Vec<TextLabel>,
pub logos: Vec<LogoPlacement>,
pub groups: Vec<Vec<String>>,
}Expand description
Body of POST /api/render/grid-rectangle (JSON).
Fields§
§lower_left_x: u16lower-left x grid coordinate.
lower_left_y: u16lower-left y grid coordinate.
upper_right_x: u16upper-right x grid coordinate.
upper_right_y: u16upper-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: OutputFormatoutput format.
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 to draw region names / coordinates with. Required only
when one of those overlays is enabled; must match a GET /api/fonts id.
save_to: Option<String>destination for the saved render. Defaults to the user’s personal
library. Format: "personal" or "group:<uuid>".
glw: Option<GlwRenderOptions>optional GLW (GlobalWind) wind / current / wave overlay. The
auto-saved GLW row inherits this render’s save_to destination.
labels: Vec<TextLabel>zero or more free-floating text labels to draw in placement slots (independent of the GLW overlay).
logos: Vec<LogoPlacement>zero or more logo images to composite in placement slots.
groups: Vec<Vec<String>>user-defined combined slot groups (each a list of slot-anchor names),
used only by the placement-slots endpoint to report each group’s
combined free rectangle. Ignored by the render itself (which takes the
group from each label/logo’s slots).
Trait Implementations§
Source§impl Clone for GridRectangleRequest
impl Clone for GridRectangleRequest
Source§fn clone(&self) -> GridRectangleRequest
fn clone(&self) -> GridRectangleRequest
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 GridRectangleRequest
impl Debug for GridRectangleRequest
Source§impl<'de> Deserialize<'de> for GridRectangleRequest
impl<'de> Deserialize<'de> for GridRectangleRequest
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 GridRectangleRequest
impl RefUnwindSafe for GridRectangleRequest
impl Send for GridRectangleRequest
impl Sync for GridRectangleRequest
impl Unpin for GridRectangleRequest
impl UnsafeUnpin for GridRectangleRequest
impl UnwindSafe for GridRectangleRequest
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.