pub struct Comment {
pub block_id: Option<Uid>,
pub x: Option<Number>,
pub y: Option<Number>,
pub width: Number,
pub height: Number,
pub minimized: bool,
pub text: Text,
}Expand description
Adjustable textboxes that can be attached to crate::block::Blocks, or left floating
Fields§
§block_id: Option<Uid>The ID of the block the comment is attached to.
x: Option<Number>The x-coordinate of the comment in the code area.
y: Option<Number>The y-coordinate of the comment in the code area.
width: NumberThe width.
height: NumberThe height.
minimized: boolTrue if the comment is collapsed and false otherwise.
text: TextThe text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Comment
impl<'de> Deserialize<'de> for Comment
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 Comment
Auto Trait Implementations§
impl Freeze for Comment
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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