pub struct Comment {}Expand description
§EntityType Comment
§Fully Qualified Namespace
reactive_graph::flow::Comment
§Description
A simple comment
§Components
| Component | Description | Properties |
|---|---|---|
reactive_graph::flow::Flow2D | The position (x,y) of the entity or relation on a two dimensional flow. |
|
reactive_graph::flow::Flow3D | The position (x,y,z) of the entity or relation on a three dimensional flow (in-game visual scripting). |
|
§Properties
- comment
§Properties from components
- f2dh
- f2dw
- f2dx
- f2dy
- f3dd
- f3dh
- f3dw
- f3dx
- f3dy
- f3dz
§JSON Schema
Fields§
§id: Uuid§comment: String§f2dh: u64§Property f2dh
The height (y-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
f2dw: u64§Property f2dw
The width (x-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
f2dx: u64§f2dy: u64§f3dd: u64§Property f3dd
The depth (z-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
f3dh: u64§Property f3dh
The height (y-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
f3dw: u64§Property f3dw
The width (x-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
f3dx: u64§f3dy: u64§f3dz: u64§extensions: ExtensionsImplementations§
Source§impl Comment
impl Comment
Sourcepub fn builder() -> CommentBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> CommentBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building Comment.
On the builder, call .id(...)(optional), .comment(...), .f2dh(...), .f2dw(...), .f2dx(...), .f2dy(...), .f3dd(...), .f3dh(...), .f3dw(...), .f3dx(...), .f3dy(...), .f3dz(...), .extensions(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of Comment.
Source§impl Comment
impl Comment
pub fn new( comment: String, f2dh: u64, f2dw: u64, f2dx: u64, f2dy: u64, f3dd: u64, f3dh: u64, f3dw: u64, f3dx: u64, f3dy: u64, f3dz: u64, ) -> Self
pub fn new_with_id( id: Uuid, comment: String, f2dh: u64, f2dw: u64, f2dx: u64, f2dy: u64, f3dd: u64, f3dh: u64, f3dw: u64, f3dx: u64, f3dy: u64, f3dz: u64, ) -> Self
pub fn new_with_extensions( id: Uuid, comment: String, f2dh: u64, f2dw: u64, f2dx: u64, f2dy: u64, f3dd: u64, f3dh: u64, f3dw: u64, f3dx: u64, f3dy: u64, f3dz: u64, extensions: Extensions, ) -> Self
pub fn id(&self) -> Uuid
Sourcepub fn set_comment(&mut self, comment: String)
pub fn set_comment(&mut self, comment: String)
Sourcepub fn f2dh(&self) -> u64
pub fn f2dh(&self) -> u64
§Property f2dh
The height (y-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Sourcepub fn set_f2dh(&mut self, f2dh: u64)
pub fn set_f2dh(&mut self, f2dh: u64)
§Property f2dh
The height (y-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Sourcepub fn f2dw(&self) -> u64
pub fn f2dw(&self) -> u64
§Property f2dw
The width (x-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Sourcepub fn set_f2dw(&mut self, f2dw: u64)
pub fn set_f2dw(&mut self, f2dw: u64)
§Property f2dw
The width (x-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Sourcepub fn f3dd(&self) -> u64
pub fn f3dd(&self) -> u64
§Property f3dd
The depth (z-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Sourcepub fn set_f3dd(&mut self, f3dd: u64)
pub fn set_f3dd(&mut self, f3dd: u64)
§Property f3dd
The depth (z-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Sourcepub fn f3dh(&self) -> u64
pub fn f3dh(&self) -> u64
§Property f3dh
The height (y-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Sourcepub fn set_f3dh(&mut self, f3dh: u64)
pub fn set_f3dh(&mut self, f3dh: u64)
§Property f3dh
The height (y-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Sourcepub fn f3dw(&self) -> u64
pub fn f3dw(&self) -> u64
§Property f3dw
The width (x-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Sourcepub fn set_f3dw(&mut self, f3dw: u64)
pub fn set_f3dw(&mut self, f3dw: u64)
§Property f3dw
The width (x-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
pub fn properties(&self) -> PropertyInstances
pub fn extensions(&self) -> Extensions
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>,
Source§impl Flow2D for Comment
impl Flow2D for Comment
Source§fn f2dh(&self) -> u64
fn f2dh(&self) -> u64
§Property f2dh
The height (y-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Source§fn set_f2dh(&mut self, f2dh: u64)
fn set_f2dh(&mut self, f2dh: u64)
§Property f2dh
The height (y-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Source§fn f2dw(&self) -> u64
fn f2dw(&self) -> u64
§Property f2dw
The width (x-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Source§fn set_f2dw(&mut self, f2dw: u64)
fn set_f2dw(&mut self, f2dw: u64)
§Property f2dw
The width (x-axis) in a 2D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Source§impl Flow3D for Comment
impl Flow3D for Comment
Source§fn f3dd(&self) -> u64
fn f3dd(&self) -> u64
§Property f3dd
The depth (z-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Source§fn set_f3dd(&mut self, f3dd: u64)
fn set_f3dd(&mut self, f3dd: u64)
§Property f3dd
The depth (z-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Source§fn f3dh(&self) -> u64
fn f3dh(&self) -> u64
§Property f3dh
The height (y-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Source§fn set_f3dh(&mut self, f3dh: u64)
fn set_f3dh(&mut self, f3dh: u64)
§Property f3dh
The height (y-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Source§fn f3dw(&self) -> u64
fn f3dw(&self) -> u64
§Property f3dw
The width (x-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
Source§fn set_f3dw(&mut self, f3dw: u64)
fn set_f3dw(&mut self, f3dw: u64)
§Property f3dw
The width (x-axis) in a 3D flow
Data Type: Number
Socket Type: None
Mutability: Mutable
impl Eq for Comment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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 more