pub struct ConstantParameter {
pub meta: Option<ParameterMeta>,
pub value: Option<f64>,
pub external: Option<ExternalDataRef>,
pub table: Option<TableDataRef>,
}
Fields§
§meta: Option<ParameterMeta>
§value: Option<f64>
§external: Option<ExternalDataRef>
§table: Option<TableDataRef>
Implementations§
Source§impl ConstantParameter
impl ConstantParameter
pub fn parameters(&self) -> HashMap<&str, ParameterValueType<'_>>
pub fn parameters_mut(&mut self) -> HashMap<&str, ParameterValueTypeMut<'_>>
Source§impl ConstantParameter
impl ConstantParameter
pub fn resource_paths(&self) -> Vec<PathBuf>
pub fn update_resource_paths(&mut self, new_paths: &HashMap<PathBuf, PathBuf>)
Source§impl ConstantParameter
impl ConstantParameter
pub fn node_references(&self) -> HashMap<&str, &str>
Trait Implementations§
Source§impl Clone for ConstantParameter
impl Clone for ConstantParameter
Source§fn clone(&self) -> ConstantParameter
fn clone(&self) -> ConstantParameter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ConstantParameter
impl Debug for ConstantParameter
Source§impl<'de> Deserialize<'de> for ConstantParameter
impl<'de> Deserialize<'de> for ConstantParameter
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
Auto Trait Implementations§
impl Freeze for ConstantParameter
impl RefUnwindSafe for ConstantParameter
impl Send for ConstantParameter
impl Sync for ConstantParameter
impl Unpin for ConstantParameter
impl UnwindSafe for ConstantParameter
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