pub struct ConstructorParam {
pub name: String,
pub ty: String,
}Expand description
One parameter in a ClientConstructorConfig.
Fields§
§name: StringParameter name as it appears in the generated function signature.
ty: StringRust type of the parameter (e.g. "*const c_char" for FFI, "&str" for Rust-embedded).
Trait Implementations§
Source§impl Clone for ConstructorParam
impl Clone for ConstructorParam
Source§fn clone(&self) -> ConstructorParam
fn clone(&self) -> ConstructorParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ConstructorParam
impl Debug for ConstructorParam
Source§impl<'de> Deserialize<'de> for ConstructorParam
impl<'de> Deserialize<'de> for ConstructorParam
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 ConstructorParam
impl RefUnwindSafe for ConstructorParam
impl Send for ConstructorParam
impl Sync for ConstructorParam
impl Unpin for ConstructorParam
impl UnsafeUnpin for ConstructorParam
impl UnwindSafe for ConstructorParam
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