pub struct FieldMetadata {
pub required: bool,
pub schema: Box<JsonTypeBean>,
pub name: String,
pub key: String,
pub auto_complete_url: Option<String>,
pub has_default_value: Option<bool>,
pub operations: Vec<String>,
pub allowed_values: Option<Vec<Value>>,
pub default_value: Option<Option<Value>>,
}
Expand description
FieldMetadata : The metadata describing an issue field.
Fields§
§required: bool
Whether the field is required.
schema: Box<JsonTypeBean>
The data type of the field.
name: String
The name of the field.
key: String
The key of the field.
auto_complete_url: Option<String>
The URL that can be used to automatically complete the field.
has_default_value: Option<bool>
Whether the field has a default value.
operations: Vec<String>
The list of operations that can be performed on the field.
allowed_values: Option<Vec<Value>>
The list of values allowed in the field.
default_value: Option<Option<Value>>
The default value of the field.
Implementations§
Source§impl FieldMetadata
impl FieldMetadata
Sourcepub fn new(
required: bool,
schema: JsonTypeBean,
name: String,
key: String,
operations: Vec<String>,
) -> FieldMetadata
pub fn new( required: bool, schema: JsonTypeBean, name: String, key: String, operations: Vec<String>, ) -> FieldMetadata
The metadata describing an issue field.
Trait Implementations§
Source§impl Clone for FieldMetadata
impl Clone for FieldMetadata
Source§fn clone(&self) -> FieldMetadata
fn clone(&self) -> FieldMetadata
Returns a duplicate 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 FieldMetadata
impl Debug for FieldMetadata
Source§impl Default for FieldMetadata
impl Default for FieldMetadata
Source§fn default() -> FieldMetadata
fn default() -> FieldMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FieldMetadata
impl<'de> Deserialize<'de> for FieldMetadata
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 PartialEq for FieldMetadata
impl PartialEq for FieldMetadata
Source§impl Serialize for FieldMetadata
impl Serialize for FieldMetadata
impl StructuralPartialEq for FieldMetadata
Auto Trait Implementations§
impl Freeze for FieldMetadata
impl RefUnwindSafe for FieldMetadata
impl Send for FieldMetadata
impl Sync for FieldMetadata
impl Unpin for FieldMetadata
impl UnwindSafe for FieldMetadata
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