pub struct RigAssetControl {
pub struct_type: ScriptStructReference,
pub init_function: Option<ScriptFunctionReference>,
pub solve_function: Option<ScriptFunctionReference>,
pub bindings: HashMap<String, String>,
}Fields§
§struct_type: ScriptStructReference§init_function: Option<ScriptFunctionReference>§solve_function: Option<ScriptFunctionReference>§bindings: HashMap<String, String>{field name: field string value}
Implementations§
source§impl RigAssetControl
impl RigAssetControl
pub fn new(struct_type: ScriptStructReference) -> Self
pub fn init_function(self, function: ScriptFunctionReference) -> Self
pub fn solve_function(self, function: ScriptFunctionReference) -> Self
pub fn binding( self, field_name: impl ToString, field_value: impl ToString ) -> Self
Trait Implementations§
source§impl Clone for RigAssetControl
impl Clone for RigAssetControl
source§fn clone(&self) -> RigAssetControl
fn clone(&self) -> RigAssetControl
Returns a copy 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 RigAssetControl
impl Debug for RigAssetControl
source§impl<'de> Deserialize<'de> for RigAssetControl
impl<'de> Deserialize<'de> for RigAssetControl
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 RefUnwindSafe for RigAssetControl
impl Send for RigAssetControl
impl Sync for RigAssetControl
impl Unpin for RigAssetControl
impl UnwindSafe for RigAssetControl
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