pub struct SwiftParam {
pub label: Option<String>,
pub name: String,
pub ty: SwiftType,
}Expand description
A parameter of an exported view’s initializer.
Fields§
§label: Option<String>The external argument label, or None for _ (unlabeled). The JSON key and the Rust
argument use SwiftParam::key either way.
name: StringThe internal parameter name.
ty: SwiftTypeImplementations§
Trait Implementations§
Source§impl Clone for SwiftParam
impl Clone for SwiftParam
Source§fn clone(&self) -> SwiftParam
fn clone(&self) -> SwiftParam
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 SwiftParam
impl Debug for SwiftParam
impl Eq for SwiftParam
Source§impl PartialEq for SwiftParam
impl PartialEq for SwiftParam
impl StructuralPartialEq for SwiftParam
Auto Trait Implementations§
impl Freeze for SwiftParam
impl RefUnwindSafe for SwiftParam
impl Send for SwiftParam
impl Sync for SwiftParam
impl Unpin for SwiftParam
impl UnsafeUnpin for SwiftParam
impl UnwindSafe for SwiftParam
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