Struct cargo::core::compiler::future_incompat::OnDiskReports
source · [−]pub struct OnDiskReports { /* private fields */ }
Expand description
The structure saved to disk containing the reports.
Implementations
sourceimpl OnDiskReports
impl OnDiskReports
sourcepub fn save_report(
ws: &Workspace<'_>,
per_package_reports: &[FutureIncompatReportPackage]
) -> OnDiskReports
pub fn save_report(
ws: &Workspace<'_>,
per_package_reports: &[FutureIncompatReportPackage]
) -> OnDiskReports
Saves a new report.
sourcepub fn load(ws: &Workspace<'_>) -> CargoResult<OnDiskReports>
pub fn load(ws: &Workspace<'_>) -> CargoResult<OnDiskReports>
Loads the on-disk reports.
pub fn get_report(&self, id: u32, config: &Config) -> CargoResult<String>
Trait Implementations
sourceimpl Default for OnDiskReports
impl Default for OnDiskReports
sourcefn default() -> OnDiskReports
fn default() -> OnDiskReports
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for OnDiskReports
impl<'de> Deserialize<'de> for OnDiskReports
sourcefn 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
sourceimpl Serialize for OnDiskReports
impl Serialize for OnDiskReports
Auto Trait Implementations
impl RefUnwindSafe for OnDiskReports
impl Send for OnDiskReports
impl Sync for OnDiskReports
impl Unpin for OnDiskReports
impl UnwindSafe for OnDiskReports
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more