pub struct ModelAttribute {
pub attribute: Attribute,
pub value: Value,
pub traits: Vec<ModelTrait>,
}
Fields§
§attribute: Attribute
§value: Value
§traits: Vec<ModelTrait>
Trait Implementations§
Source§impl Clone for ModelAttribute
impl Clone for ModelAttribute
Source§fn clone(&self) -> ModelAttribute
fn clone(&self) -> ModelAttribute
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 ModelAttribute
impl Debug for ModelAttribute
Source§impl Default for ModelAttribute
impl Default for ModelAttribute
Source§fn default() -> ModelAttribute
fn default() -> ModelAttribute
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelAttribute
impl<'de> Deserialize<'de> for ModelAttribute
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 ModelAttribute
impl PartialEq for ModelAttribute
Source§impl Serialize for ModelAttribute
impl Serialize for ModelAttribute
impl StructuralPartialEq for ModelAttribute
Auto Trait Implementations§
impl Freeze for ModelAttribute
impl RefUnwindSafe for ModelAttribute
impl Send for ModelAttribute
impl Sync for ModelAttribute
impl Unpin for ModelAttribute
impl UnwindSafe for ModelAttribute
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