pub enum TomlPackageBuild {
Auto(bool),
SingleScript(String),
MultipleScript(Vec<String>),
}
Variants§
Auto(bool)
If build scripts are disabled or enabled.
If true, build.rs
in the root folder will be the build script.
SingleScript(String)
Path of Build Script if there’s just one script.
MultipleScript(Vec<String>)
Vector of paths if multiple build script are to be used.
Trait Implementations§
Source§impl Clone for TomlPackageBuild
impl Clone for TomlPackageBuild
Source§fn clone(&self) -> TomlPackageBuild
fn clone(&self) -> TomlPackageBuild
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TomlPackageBuild
impl Debug for TomlPackageBuild
Source§impl<'de> Deserialize<'de> for TomlPackageBuild
impl<'de> Deserialize<'de> for TomlPackageBuild
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 TomlPackageBuild
impl PartialEq for TomlPackageBuild
Source§impl Serialize for TomlPackageBuild
impl Serialize for TomlPackageBuild
impl Eq for TomlPackageBuild
impl StructuralPartialEq for TomlPackageBuild
Auto Trait Implementations§
impl Freeze for TomlPackageBuild
impl RefUnwindSafe for TomlPackageBuild
impl Send for TomlPackageBuild
impl Sync for TomlPackageBuild
impl Unpin for TomlPackageBuild
impl UnwindSafe for TomlPackageBuild
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Auto
: 1 byteSingleScript
: 31 bytesMultipleScript
: 31 bytes