pub struct Node {
pub id: i64,
pub name: String,
pub data: Option<Value>,
pub group: Option<i64>,
pub position: Option<Vec<f32>>,
pub inputs: Option<Inputs>,
pub outputs: Option<Outputs>,
}
Fields
id: i64
name: String
data: Option<Value>
group: Option<i64>
position: Option<Vec<f32>>
inputs: Option<Inputs>
outputs: Option<Outputs>
Implementations
sourceimpl Node
impl Node
pub fn get_number_field_or(
&self,
field: &'static str,
inputs: &InputData,
default: Option<i64>
) -> Result<i64>
pub fn get_float_number_field_or(
&self,
field: &'static str,
inputs: &InputData,
default: Option<f64>
) -> Result<f64>
pub fn get_string_field_or(
&self,
field: &'static str,
inputs: &InputData,
default: Option<String>
) -> Result<String>
pub fn get_json_field_or(
&self,
field: &'static str,
inputs: &InputData,
default: Option<Value>
) -> Result<Value>
pub fn get_as_json_field_or(
&self,
field: &'static str,
inputs: &InputData,
default: Option<Value>
) -> Result<Value>
pub fn get_as_json_field(
&self,
field: &'static str,
inputs: &InputData
) -> Result<Value>
pub fn get_string_field(
&self,
field: &'static str,
inputs: &InputData
) -> Result<String>
pub fn get_number_field(
&self,
field: &'static str,
inputs: &InputData
) -> Result<i64>
pub fn get_float_number_field(
&self,
field: &'static str,
inputs: &InputData
) -> Result<f64>
pub fn get_json_field(
&self,
field: &'static str,
inputs: &InputData
) -> Result<Value>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more