pub struct WorkspaceManifestFile { /* private fields */ }
Expand description

A WorkspaceManifest that was deserialized from a file at a particular path.

Implementations§

Given a path to a Forc.toml, read it and construct a PackageManifest

This also validates the manifest, returning an Err in the case that given members are not present in the manifest dir.

Read the manifest from the Forc.toml in the directory specified by the given path or any of its parent directories.

This is short for PackageManifest::from_file, but takes care of constructing the path to the file.

Returns an iterator over relative paths of workspace members.

Returns an iterator over workspace member root directories.

This will always return canonical paths.

Returns an iterator over workspace member package manifests.

The path to the Forc.toml from which this manifest was loaded.

This will always be a canonical path.

The path to the directory containing the Forc.toml from which this manifest was loaded.

This will always be a canonical path.

Check if given path corresponds to any workspace member’s path

Returns the location of the lock file for WorkspaceManifestFile.

This will always be a canonical path.

Methods from Deref<Target = WorkspaceManifest>§

Validate the WorkspaceManifest

This checks if the listed members in the WorkspaceManifest are indeed in the given Forc.toml’s directory.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Dereferences the value.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more