pub struct UpdateCheck {
pub id: String,
pub status: UpdateStatus,
pub current: Option<String>,
pub latest: Option<String>,
pub changes: Vec<FileChange>,
pub error: Option<CoreError>,
pub scan: Option<ScanReport>,
pub trust: Option<TrustCheck>,
pub source_change: Option<SourceChange>,
pub moved_trust: Option<TrustCheck>,
}Expand description
Result of check_update.
Fields§
§id: String§status: UpdateStatus§current: Option<String>The commit the store copy came from.
latest: Option<String>The source’s commit now.
changes: Vec<FileChange>Files that differ from the store copy (a store copy edited locally shows here too).
error: Option<CoreError>§scan: Option<ScanReport>The built-in scan of the source’s content now, when an update is available (SPEC 17): what the update review shows.
trust: Option<TrustCheck>The trust check of the skill’s git source (#24): an update needs trust (or the user’s answer) like an install.
source_change: Option<SourceChange>What changed about the source since the last fetch (force-push, moved); trust in it lapsed when it was trusted.
moved_trust: Option<TrustCheck>The trust check of the repository the source moved to, when the
host redirected it to another key: the update needs its trust too
(Decisions::moved_trust), and moves the skill’s URL there.
Trait Implementations§
Source§impl Clone for UpdateCheck
impl Clone for UpdateCheck
Auto Trait Implementations§
impl Forget for UpdateCheck
impl Freeze for UpdateCheckwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<FileChange>: Freeze,
PhantomData<Finding>: Freeze,
PhantomData<String>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<SourceScope>: Freeze,
impl Move for UpdateCheck
impl RefUnwindSafe for UpdateCheck
impl Send for UpdateCheck
impl Sync for UpdateCheck
impl Unpin for UpdateCheck
impl UnsafeUnpin for UpdateCheckwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<FileChange>: UnsafeUnpin,
PhantomData<Finding>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<SourceScope>: UnsafeUnpin,
impl UnwindSafe for UpdateCheck
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