#[non_exhaustive]pub struct TargetMetadata {
pub kind: String,
pub name: String,
pub source_path: Utf8PathBuf,
pub params: Value,
pub extra: HashMap<String, Value>,
}Expand description
Package target information.
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.kind: StringTarget kind: lib, starknet-contract, etc.
name: StringTarget name, often this is a default, which is the package name.
source_path: Utf8PathBufPath to the main source file of the target.
params: ValueUnstructured target parameters, excluding default values.
Default values are omitted because they are unknown to Scarb, they are applied by compilers.
extra: HashMap<String, Value>Additional data not captured by deserializer.
Implementations§
Source§impl TargetMetadata
impl TargetMetadata
Sourcepub fn source_root(&self) -> &Utf8Path
pub fn source_root(&self) -> &Utf8Path
Path to the main source directory of the target.
Trait Implementations§
Source§impl Clone for TargetMetadata
impl Clone for TargetMetadata
Source§fn clone(&self) -> TargetMetadata
fn clone(&self) -> TargetMetadata
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 TargetMetadata
impl Debug for TargetMetadata
Source§impl<'de> Deserialize<'de> for TargetMetadata
impl<'de> Deserialize<'de> for TargetMetadata
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 TargetMetadata
impl PartialEq for TargetMetadata
Source§impl Serialize for TargetMetadata
impl Serialize for TargetMetadata
impl Eq for TargetMetadata
impl StructuralPartialEq for TargetMetadata
Auto Trait Implementations§
impl Freeze for TargetMetadata
impl RefUnwindSafe for TargetMetadata
impl Send for TargetMetadata
impl Sync for TargetMetadata
impl Unpin for TargetMetadata
impl UnwindSafe for TargetMetadata
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