pub struct MetaInfo<Identifier> {
pub identifier: Option<Identifier>,
pub note: Option<String>,
}Expand description
Type used to capture optional metadata that can be attached to most XCSP3 elements
Fields§
§identifier: Option<Identifier>Name assigned to the element
note: Option<String>Comment from the user about the element
Trait Implementations§
Source§impl<'de, Identifier> Deserialize<'de> for MetaInfo<Identifier>where
Identifier: FromStr,
impl<'de, Identifier> Deserialize<'de> for MetaInfo<Identifier>where
Identifier: FromStr,
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<Identifier> StructuralPartialEq for MetaInfo<Identifier>
Auto Trait Implementations§
impl<Identifier> Freeze for MetaInfo<Identifier>where
Identifier: Freeze,
impl<Identifier> RefUnwindSafe for MetaInfo<Identifier>where
Identifier: RefUnwindSafe,
impl<Identifier> Send for MetaInfo<Identifier>where
Identifier: Send,
impl<Identifier> Sync for MetaInfo<Identifier>where
Identifier: Sync,
impl<Identifier> Unpin for MetaInfo<Identifier>where
Identifier: Unpin,
impl<Identifier> UnwindSafe for MetaInfo<Identifier>where
Identifier: UnwindSafe,
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