pub(crate) struct WorkspaceInfo<'a> {
pub(crate) path: &'a str,
pub(crate) exceptions: &'static [(&'static str, &'static str)],
crates_and_deps: Option<(&'a [&'a str], &'a [&'a str], ListLocation)>,
pub(crate) submodules: &'a [&'a str],
}
Fields§
§path: &'a str
Path to the directory containing the workspace root Cargo.toml file.
exceptions: &'static [(&'static str, &'static str)]
The list of license exceptions.
crates_and_deps: Option<(&'a [&'a str], &'a [&'a str], ListLocation)>
Optionally:
- A list of crates for which dependencies need to be explicitly allowed.
- The list of allowed dependencies.
- The source code location of the allowed dependencies list
submodules: &'a [&'a str]
Submodules required for the workspace
Trait Implementations§
Source§impl<'a> Clone for WorkspaceInfo<'a>
impl<'a> Clone for WorkspaceInfo<'a>
Source§fn clone(&self) -> WorkspaceInfo<'a>
fn clone(&self) -> WorkspaceInfo<'a>
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 moreimpl<'a> Copy for WorkspaceInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for WorkspaceInfo<'a>
impl<'a> RefUnwindSafe for WorkspaceInfo<'a>
impl<'a> Send for WorkspaceInfo<'a>
impl<'a> Sync for WorkspaceInfo<'a>
impl<'a> Unpin for WorkspaceInfo<'a>
impl<'a> UnwindSafe for WorkspaceInfo<'a>
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<T> Pointable for T
impl<T> Pointable for T
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: 104 bytes