pub struct ExtensionDistrFile {
pub metadata_toml: MetadataToml,
pub cargo_toml: CargoToml,
pub package_json: PackageJson,
/* private fields */
}Fields§
§metadata_toml: MetadataToml§cargo_toml: CargoToml§package_json: PackageJsonImplementations§
Source§impl ExtensionDistrFile
impl ExtensionDistrFile
pub fn parse_from_reader(file: File) -> Result<Self, Error>
pub fn extract_backend(&mut self, path: impl AsRef<Path>) -> Result<(), Error>
pub fn extract_frontend(&mut self, path: impl AsRef<Path>) -> Result<(), Error>
pub fn has_migrations(&mut self) -> bool
pub fn extract_migrations( &mut self, path: impl AsRef<Path>, ) -> Result<(), Error>
pub fn get_migrations(&mut self) -> Result<Vec<ExtensionMigration>, Error>
pub fn validate(&mut self) -> Result<(), Error>
pub fn total_size(&self) -> u128
Trait Implementations§
Source§impl Clone for ExtensionDistrFile
impl Clone for ExtensionDistrFile
Source§fn clone(&self) -> ExtensionDistrFile
fn clone(&self) -> ExtensionDistrFile
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExtensionDistrFile
impl RefUnwindSafe for ExtensionDistrFile
impl Send for ExtensionDistrFile
impl Sync for ExtensionDistrFile
impl Unpin for ExtensionDistrFile
impl UnwindSafe for ExtensionDistrFile
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more