pub struct ManifestExtSpec {
pub signed_region: Vec<ManifestExtEntrySpec>,
pub unsigned_region: Vec<ManifestExtEntrySpec>,
/* private fields */
}
Expand description
Top level spec for manifest extension HJSON files.
Fields§
§signed_region: Vec<ManifestExtEntrySpec>
§unsigned_region: Vec<ManifestExtEntrySpec>
Implementations§
Source§impl ManifestExtSpec
impl ManifestExtSpec
Sourcepub fn read_from_file(path: &Path) -> Result<Self>
pub fn read_from_file(path: &Path) -> Result<Self>
Reads in a ManifestExtSpec
from an HJSON file.
The parent of path
(the directory containing the HJSON file to be loaded) is used when
resolving relative paths for any extension data that references a file.
Sourcepub fn source_path(&self) -> Option<&Path>
pub fn source_path(&self) -> Option<&Path>
The partent of the path that was provided when loading this spec.
Trait Implementations§
Source§impl Debug for ManifestExtSpec
impl Debug for ManifestExtSpec
Source§impl Default for ManifestExtSpec
impl Default for ManifestExtSpec
Source§fn default() -> ManifestExtSpec
fn default() -> ManifestExtSpec
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ManifestExtSpec
impl<'de> Deserialize<'de> for ManifestExtSpec
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
Auto Trait Implementations§
impl Freeze for ManifestExtSpec
impl RefUnwindSafe for ManifestExtSpec
impl Send for ManifestExtSpec
impl Sync for ManifestExtSpec
impl Unpin for ManifestExtSpec
impl UnwindSafe for ManifestExtSpec
Blanket Implementations§
§impl<T> Annotate for T
impl<T> Annotate for T
default fn format( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<Format>
default fn comment( &self, _variant: Option<&str>, _field: &MemberId<'_>, ) -> Option<String>
default fn as_annotate(&self) -> Option<&dyn Annotate>
default fn thunk_serialize( &self, serializer: &mut AnnotatedSerializer<'_>, ) -> Result<Document, Error>
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