Struct cargo::core::compiler::future_incompat::OnDiskReports
source · pub struct OnDiskReports { /* private fields */ }
Expand description
The structure saved to disk containing the reports.
Implementations§
source§impl OnDiskReports
impl OnDiskReports
sourcepub fn save_report(
self,
ws: &Workspace<'_>,
suggestion_message: String,
per_package_reports: &[FutureIncompatReportPackage]
) -> u32
pub fn save_report( self, ws: &Workspace<'_>, suggestion_message: String, per_package_reports: &[FutureIncompatReportPackage] ) -> u32
Saves a new report returning its id
sourcepub fn load(ws: &Workspace<'_>) -> CargoResult<OnDiskReports>
pub fn load(ws: &Workspace<'_>) -> CargoResult<OnDiskReports>
Loads the on-disk reports.
sourcepub fn get_report(&self, id: u32, package: Option<&str>) -> CargoResult<String>
pub fn get_report(&self, id: u32, package: Option<&str>) -> CargoResult<String>
Returns an ANSI-styled report
Trait Implementations§
source§impl Default for OnDiskReports
impl Default for OnDiskReports
source§fn default() -> OnDiskReports
fn default() -> OnDiskReports
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for OnDiskReports
impl<'de> Deserialize<'de> for OnDiskReports
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 RefUnwindSafe for OnDiskReports
impl Send for OnDiskReports
impl Sync for OnDiskReports
impl Unpin for OnDiskReports
impl UnwindSafe for OnDiskReports
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