pub struct ApiDiff {
pub added: Vec<ApiItem>,
pub removed: Vec<ApiItem>,
pub changed: Vec<ApiChange>,
}Expand description
The diff between two API snapshots.
Fields§
§added: Vec<ApiItem>§removed: Vec<ApiItem>§changed: Vec<ApiChange>Implementations§
Source§impl ApiDiff
impl ApiDiff
Sourcepub fn has_breaking(&self) -> bool
pub fn has_breaking(&self) -> bool
Returns true if any change is breaking.
Sourcepub fn breaking_count(&self) -> usize
pub fn breaking_count(&self) -> usize
Count the number of breaking changes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiDiff
impl<'de> Deserialize<'de> for ApiDiff
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 Freeze for ApiDiff
impl RefUnwindSafe for ApiDiff
impl Send for ApiDiff
impl Sync for ApiDiff
impl Unpin for ApiDiff
impl UnsafeUnpin for ApiDiff
impl UnwindSafe for ApiDiff
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