#[non_exhaustive]pub struct FieldConfig {
pub attrs: Vec<String>,
pub go_tags: BTreeMap<String, String>,
pub rename: Option<String>,
}Expand description
Per-field settings, addressed by the property name as written in the description.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.attrs: Vec<String>Extra Rust attributes, appended as separate lines.
Extra Go struct-tag keys, merged into the one tag.
rename: Option<String>The generated name, when the derived one is not wanted.
Trait Implementations§
Source§impl Clone for FieldConfig
impl Clone for FieldConfig
Source§impl Debug for FieldConfig
impl Debug for FieldConfig
Source§impl Default for FieldConfig
impl Default for FieldConfig
Source§impl<'de> Deserialize<'de> for FieldConfigwhere
FieldConfig: Default,
impl<'de> Deserialize<'de> for FieldConfigwhere
FieldConfig: Default,
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
impl Eq for FieldConfig
Source§impl PartialEq for FieldConfig
impl PartialEq for FieldConfig
impl StructuralPartialEq for FieldConfig
Auto Trait Implementations§
impl Forget for FieldConfig
impl Freeze for FieldConfigwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<u8>: Freeze,
impl Move for FieldConfig
impl RefUnwindSafe for FieldConfig
impl Send for FieldConfig
impl Sync for FieldConfig
impl Unpin for FieldConfig
impl UnsafeUnpin for FieldConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for FieldConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.