pub struct ProjectManifest {
pub schema: i64,
pub id: Option<String>,
pub name: Option<String>,
pub defaults: Option<ProjectDefaults>,
pub servers: Option<BTreeMap<String, ProjectServer>>,
pub skills: Option<ProjectSkills>,
pub extra: Table,
}Expand description
Both manifest files share this schema.
Fields§
§schema: i64Schema version; always 1.
id: Option<String>Project id. Required in project.toml, and in project.local.toml
when there is no shared file (a private project).
name: Option<String>§defaults: Option<ProjectDefaults>§servers: Option<BTreeMap<String, ProjectServer>>Servers by name: overrides (from), suppressions (enabled = false)
or complete project-only definitions.
skills: Option<ProjectSkills>§extra: TableImplementations§
Source§impl ProjectManifest
impl ProjectManifest
pub fn new(id: Option<String>) -> Self
Sourcepub fn validate(
&self,
layer: ManifestLayer<'_>,
dir_id: Option<&str>,
) -> Diagnostics
pub fn validate( &self, layer: ManifestLayer<'_>, dir_id: Option<&str>, ) -> Diagnostics
Validates per SPEC 5.5 and 6.2. dir_id is the store mirror
directory name (projects/<dir_id>/), when known.
Trait Implementations§
Source§impl Clone for ProjectManifest
impl Clone for ProjectManifest
Source§impl Debug for ProjectManifest
impl Debug for ProjectManifest
Source§impl<'de> Deserialize<'de> for ProjectManifest
impl<'de> Deserialize<'de> for ProjectManifest
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 JsonSchema for ProjectManifest
impl JsonSchema for ProjectManifest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ProjectManifest
impl PartialEq for ProjectManifest
Source§impl Serialize for ProjectManifest
impl Serialize for ProjectManifest
Source§impl StoreModel for ProjectManifest
impl StoreModel for ProjectManifest
Source§const SCHEMA_NAME: &'static str = "project"
const SCHEMA_NAME: &'static str = "project"
File stem of the generated JSON Schema:
docs/schema/<NAME>.schema.json.impl StructuralPartialEq for ProjectManifest
Auto Trait Implementations§
impl Forget for ProjectManifest
impl Freeze for ProjectManifestwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
*const LeafNode<String, ProjectServer> is !null: Freeze,
PhantomData<Box<(String, ProjectServer)>>: Freeze,
impl Move for ProjectManifest
impl RefUnwindSafe for ProjectManifest
impl Send for ProjectManifest
impl Sync for ProjectManifest
impl Unpin for ProjectManifest
impl UnsafeUnpin for ProjectManifestwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
*const LeafNode<String, ProjectServer> is !null: UnsafeUnpin,
PhantomData<Box<(String, ProjectServer)>>: UnsafeUnpin,
impl UnwindSafe for ProjectManifestwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
BTreeMap<String, ProjectServer>: UnwindSafe,
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