pub struct ExportDecl {
pub kind: ExportKind,
pub out: String,
pub select: Option<Vec<String>>,
pub env: Option<ExportEnv>,
}Expand description
One declared export: the adapter, the destination, optionally a subset of the layer, and — for a sourced payload — how its environment is entered.
Fields§
§kind: ExportKind§out: StringDestination, relative to the directory holding varve.toml.
select: Option<Vec<String>>A SUBSET of the layer’s payloads by name. None means all of them —
a project exporting one extension or three crates into a dedicated
area is the ordinary case, not a special one (clause 2).
env: Option<ExportEnv>Implementations§
Source§impl ExportDecl
impl ExportDecl
Sourcepub fn dir(&self, project_root: &Path) -> PathBuf
pub fn dir(&self, project_root: &Path) -> PathBuf
The absolute destination, resolved against the directory holding
varve.toml. Relative in the file so the declaration travels with the
repository; absolute here because everything downstream — the stamp, the
SDK relocation budget, the PATH comparison — needs a real path.
Sourcepub fn env_script(&self, project_root: &Path) -> Option<PathBuf>
pub fn env_script(&self, project_root: &Path) -> Option<PathBuf>
The script varve env sources for this export, if it has one.
Trait Implementations§
Source§impl Clone for ExportDecl
impl Clone for ExportDecl
Source§fn clone(&self) -> ExportDecl
fn clone(&self) -> ExportDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExportDecl
impl Debug for ExportDecl
impl Eq for ExportDecl
Source§impl PartialEq for ExportDecl
impl PartialEq for ExportDecl
impl StructuralPartialEq for ExportDecl
Auto Trait Implementations§
impl Freeze for ExportDecl
impl RefUnwindSafe for ExportDecl
impl Send for ExportDecl
impl Sync for ExportDecl
impl Unpin for ExportDecl
impl UnsafeUnpin for ExportDecl
impl UnwindSafe for ExportDecl
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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