Struct fj::models::ArgumentMetadata
source · pub struct ArgumentMetadata {
pub name: String,
pub description: Option<String>,
pub default_value: Option<String>,
}
Expand description
Metadata describing a model’s argument.
Fields§
§name: String
The name used to refer to this argument.
description: Option<String>
A short description of this argument that could be shown to the user in something like a tooltip.
default_value: Option<String>
Something that could be used as a default if no value was provided.
Implementations§
source§impl ArgumentMetadata
impl ArgumentMetadata
sourcepub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
Set the ArgumentMetadata::description
.
sourcepub fn with_default_value(self, default_value: impl Into<String>) -> Self
pub fn with_default_value(self, default_value: impl Into<String>) -> Self
Set the ArgumentMetadata::default_value
.
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 From<&str> for ArgumentMetadata
impl From<&str> for ArgumentMetadata
source§impl PartialEq<ArgumentMetadata> for ArgumentMetadata
impl PartialEq<ArgumentMetadata> for ArgumentMetadata
source§fn eq(&self, other: &ArgumentMetadata) -> bool
fn eq(&self, other: &ArgumentMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.