struct Meta {
version: String,
}Expand description
Represents metadata within the package section of Cargo.toml.
This struct contains individual metadata fields from the package section. Currently, only the version field is stored, but additional fields can be added as needed (e.g., name, description, authors, etc.).
All fields are private and should be accessed through methods on the
parent Manifest struct.
Fields§
§version: StringThe version string from the package metadata.
This field contains the version identifier as specified in the Cargo.toml file (e.g., “1.0.0”, “2.3.4-beta.1”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
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
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnwindSafe for Meta
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