pub struct Meta {
pub manifest: String,
pub project: String,
pub name: String,
pub description: String,
pub authors: Vec<String>,
pub language: String,
pub build: Option<MetadataBuild>,
}Expand description
Meta is the Meta struct
Fields§
§manifest: String§project: String§name: String§description: String§language: String§build: Option<MetadataBuild>Implementations§
Source§impl Meta
impl Meta
Sourcepub fn from_binary(data: &[u8]) -> Result<Self>
pub fn from_binary(data: &[u8]) -> Result<Self>
read Meta from binary
Sourcepub fn get_target(&self) -> String
pub fn get_target(&self) -> String
get compiled target
Sourcepub fn get_output(&self) -> String
pub fn get_output(&self) -> String
get output file
Sourcepub fn get_src_dir(&self) -> String
pub fn get_src_dir(&self) -> String
get src directory name
Sourcepub fn get_project_name(&self) -> String
pub fn get_project_name(&self) -> String
get project name
Sourcepub fn generate_project_name(&mut self) -> String
pub fn generate_project_name(&mut self) -> String
generate project name with random string
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more