Struct ComponentArg

pub struct ComponentArg { /* private fields */ }

Information about a single component argument.

Implementations

impl ComponentArg

fn name(&self) -> &str

The argument name.

fn default(&self) -> Option<&Value>

The default value, if one was specified

fn arg_type(&self) -> Option<ComponentArgType>

The type, if one was specified.

fn is_required(&self) -> bool

Whether this param is required, eg no default value for a non-implicit arg. The argument needs to be passed explicitly

fn is_implicit(&self) -> bool

Whether this param is implicit

Trait Implementations

impl Clone for ComponentArg

fn clone(&self) -> Self

impl Debug for ComponentArg

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for ComponentArg

impl RefUnwindSafe for ComponentArg

impl Send for ComponentArg

impl Sync for ComponentArg

impl Unpin for ComponentArg

impl UnsafeUnpin for ComponentArg

impl UnwindSafe for ComponentArg

Blanket Implementations

impl<T> Any for ComponentArg where T: 'static + ?Sized,

impl<T> Borrow<T> for ComponentArg where T: ?Sized,

impl<T> BorrowMut<T> for ComponentArg where T: ?Sized,

impl<T> CloneToUninit for ComponentArg where T: Clone,

impl<T> From<T> for ComponentArg

impl<T> ToOwned for ComponentArg where T: Clone,

impl<T, U> Into<U> for ComponentArg where U: From<T>,

impl<T, U> TryFrom<U> for ComponentArg where U: Into<T>,

impl<T, U> TryInto<U> for ComponentArg where U: TryFrom<T>,