pub struct RegionOverlayPreviewRequest {
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 draw_region_rectangles: bool,
pub draw_region_names: bool,
pub draw_region_coordinates: bool,
pub region_label_font_id: Option<String>,
pub missing_region_color: Option<String>,
}Expand description
Body of POST /api/render/region-overlay-preview (JSON).
Fields§
§lower_left_x: u32lower-left x grid coordinate of the final-image rectangle.
lower_left_y: u32lower-left y grid coordinate of the final-image rectangle.
upper_right_x: u32upper-right x grid coordinate of the final-image rectangle.
upper_right_y: u32upper-right y grid coordinate of the final-image rectangle.
max_width: u32final-image fit width in pixels (so the overlay is rasterised at the same resolution — and thus the same per-region pixel size — the real render uses, keeping the size gate consistent between preview and final).
max_height: u32final-image fit height in pixels.
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.
missing_region_color: Option<String>optional hex colour for the missing-region fill. When set (the user has “Fill missing regions” enabled) and region names are being looked up, regions the lookup reports as non-existent are painted with this colour, reusing the lookup result the names need anyway. Absent → no fill.
Trait Implementations§
Source§impl Clone for RegionOverlayPreviewRequest
impl Clone for RegionOverlayPreviewRequest
Source§fn clone(&self) -> RegionOverlayPreviewRequest
fn clone(&self) -> RegionOverlayPreviewRequest
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 RegionOverlayPreviewRequest
impl Debug for RegionOverlayPreviewRequest
Source§impl<'de> Deserialize<'de> for RegionOverlayPreviewRequest
impl<'de> Deserialize<'de> for RegionOverlayPreviewRequest
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 RegionOverlayPreviewRequest
impl RefUnwindSafe for RegionOverlayPreviewRequest
impl Send for RegionOverlayPreviewRequest
impl Sync for RegionOverlayPreviewRequest
impl Unpin for RegionOverlayPreviewRequest
impl UnsafeUnpin for RegionOverlayPreviewRequest
impl UnwindSafe for RegionOverlayPreviewRequest
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.