pub struct Region {
pub x: f64,
pub y: f64,
pub region_height: f64,
pub region_width: f64,
pub comment_pin_corner: Option<CommentPinCorner>,
}Expand description
Region : Position of a region comment on the canvas.
Fields§
§x: f64X coordinate of the position.
y: f64Y coordinate of the position.
region_height: f64The height of the comment region. Must be greater than 0.
region_width: f64The width of the comment region. Must be greater than 0.
comment_pin_corner: Option<CommentPinCorner>The corner of the comment region to pin to the node’s corner as a string enum.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Region
impl<'de> Deserialize<'de> for Region
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Region
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
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
Mutably borrows from an owned value. Read more