pub struct WorkspaceManifest {
pub workspace: Option<WorkspaceSection>,
pub generate: Vec<TargetConfig>,
pub codegen: Option<HashMap<String, CodegenTargetConfig>>,
}Expand description
The top-level polyxml.toml workspace manifest.
Fields§
§workspace: Option<WorkspaceSection>§generate: Vec<TargetConfig>§codegen: Option<HashMap<String, CodegenTargetConfig>>Implementations§
Source§impl WorkspaceManifest
impl WorkspaceManifest
pub fn from_file(path: impl AsRef<Path>) -> Result<Self, ConfigError>
Sourcepub fn resolved_targets(&self) -> Vec<TargetConfig>
pub fn resolved_targets(&self) -> Vec<TargetConfig>
Retrieve all configured target configurations, combining [[generate]]
and [codegen.<target>] definitions.
Sourcepub fn expand_schemas(
&self,
base_dir: &Path,
) -> Result<Vec<PathBuf>, ConfigError>
pub fn expand_schemas( &self, base_dir: &Path, ) -> Result<Vec<PathBuf>, ConfigError>
Expand all schema glob patterns in workspace.schemas relative to base directory.
Trait Implementations§
Source§impl Clone for WorkspaceManifest
impl Clone for WorkspaceManifest
Source§fn clone(&self) -> WorkspaceManifest
fn clone(&self) -> WorkspaceManifest
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 WorkspaceManifest
impl Debug for WorkspaceManifest
Source§impl Default for WorkspaceManifest
impl Default for WorkspaceManifest
Source§fn default() -> WorkspaceManifest
fn default() -> WorkspaceManifest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WorkspaceManifest
impl<'de> Deserialize<'de> for WorkspaceManifest
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
impl Eq for WorkspaceManifest
Source§impl FromStr for WorkspaceManifest
impl FromStr for WorkspaceManifest
Source§impl PartialEq for WorkspaceManifest
impl PartialEq for WorkspaceManifest
Source§impl Serialize for WorkspaceManifest
impl Serialize for WorkspaceManifest
impl StructuralPartialEq for WorkspaceManifest
Auto Trait Implementations§
impl Freeze for WorkspaceManifest
impl RefUnwindSafe for WorkspaceManifest
impl Send for WorkspaceManifest
impl Sync for WorkspaceManifest
impl Unpin for WorkspaceManifest
impl UnsafeUnpin for WorkspaceManifest
impl UnwindSafe for WorkspaceManifest
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.