pub struct PackageMeta { /* private fields */ }Expand description
Typed, owned metadata from an installed package’s Meta/package.rds.
Implementations§
Source§impl PackageMeta
impl PackageMeta
Sourcepub fn read_installed(
package_dir: impl AsRef<Path>,
) -> Result<Self, InstalledMetadataError>
pub fn read_installed( package_dir: impl AsRef<Path>, ) -> Result<Self, InstalledMetadataError>
Reads and validates Meta/package.rds below an installed package
directory.
Sourcepub fn read_installed_with_options(
package_dir: impl AsRef<Path>,
options: &ReadOptions,
) -> Result<Self, InstalledMetadataError>
pub fn read_installed_with_options( package_dir: impl AsRef<Path>, options: &ReadOptions, ) -> Result<Self, InstalledMetadataError>
Reads and validates Meta/package.rds with explicit file and decode
bounds.
Sourcepub fn from_object(object: &RObject) -> Result<Self, ViewError>
pub fn from_object(object: &RObject) -> Result<Self, ViewError>
Validates and copies a packageDescription2 R object.
Sourcepub fn built(&self) -> Option<&Built>
pub fn built(&self) -> Option<&Built>
Returns the validated Built metadata, if the element is present.
Trait Implementations§
Source§impl Clone for PackageMeta
impl Clone for PackageMeta
Source§impl Debug for PackageMeta
impl Debug for PackageMeta
impl Eq for PackageMeta
Source§impl PartialEq for PackageMeta
impl PartialEq for PackageMeta
impl StructuralPartialEq for PackageMeta
Auto Trait Implementations§
impl Freeze for PackageMeta
impl RefUnwindSafe for PackageMeta
impl Send for PackageMeta
impl Sync for PackageMeta
impl Unpin for PackageMeta
impl UnsafeUnpin for PackageMeta
impl UnwindSafe for PackageMeta
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