pub struct ArgumentMetadata {
pub name: String,
pub description: String,
pub arg_type: ArgumentType,
pub required: bool,
pub default_value: Option<Value>,
pub constraints: Option<ArgumentConstraints>,
}
Expand description
Argument metadata for operations
Fields§
§name: String
Argument name
description: String
Argument description
arg_type: ArgumentType
Argument type
required: bool
Whether argument is required
default_value: Option<Value>
Default value
constraints: Option<ArgumentConstraints>
Validation constraints
Trait Implementations§
Source§impl Clone for ArgumentMetadata
impl Clone for ArgumentMetadata
Source§fn clone(&self) -> ArgumentMetadata
fn clone(&self) -> ArgumentMetadata
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 ArgumentMetadata
impl Debug for ArgumentMetadata
Source§impl<'de> Deserialize<'de> for ArgumentMetadata
impl<'de> Deserialize<'de> for ArgumentMetadata
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
Source§impl From<ArgumentMetadata> for ArgumentInfo
impl From<ArgumentMetadata> for ArgumentInfo
Source§fn from(metadata: ArgumentMetadata) -> Self
fn from(metadata: ArgumentMetadata) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArgumentMetadata
impl RefUnwindSafe for ArgumentMetadata
impl Send for ArgumentMetadata
impl Sync for ArgumentMetadata
impl Unpin for ArgumentMetadata
impl UnwindSafe for ArgumentMetadata
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