ServiceCompatibility

Struct ServiceCompatibility 

Source
pub struct ServiceCompatibility;
Expand description

Main service compatibility analyzer

Implementations§

Source§

impl ServiceCompatibility

Source

pub fn analyze_compatibility( base_service: &ServiceSpec, candidate_service: &ServiceSpec, ) -> Result<CompatibilityAnalysisResult>

Analyze compatibility between two ServiceSpec using both fingerprints and proto-sign

Source

pub fn is_breaking( base_service: &ServiceSpec, candidate_service: &ServiceSpec, ) -> Result<bool>

检查是否存在破坏性变更(用于 CI/CD 快速判断)

注意:此方法内部会执行完整的兼容性分析。如果需要详细信息, 建议直接调用 analyze_compatibility 并检查 result.level

Source

pub fn breaking_changes( base_service: &ServiceSpec, candidate_service: &ServiceSpec, ) -> Result<Vec<BreakingChange>>

获取破坏性变更列表(用于生成升级指南、错误报告等)

注意:此方法内部会执行完整的兼容性分析。如果需要其他信息, 建议直接调用 analyze_compatibility 并使用 result.breaking_changes

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.