#[non_exhaustive]pub struct Rewrite {
pub name: String,
pub new_version: String,
pub from: String,
pub to: String,
}Expand description
One out-of-range workspace dependency requirement rewritten by the version step.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringDeclared package name of the dependency.
new_version: StringThe dependency’s new version.
from: StringThe requirement before the rewrite.
to: StringThe requirement after the rewrite.
Trait Implementations§
impl Eq for Rewrite
impl StructuralPartialEq for Rewrite
Auto Trait Implementations§
impl Forget for Rewrite
impl Freeze for Rewrite
impl Move for Rewrite
impl RefUnwindSafe for Rewrite
impl Send for Rewritewhere
RawVecInner: Send,
impl Sync for Rewritewhere
RawVecInner: Sync,
impl Unpin for Rewrite
impl UnsafeUnpin for Rewrite
impl UnwindSafe for Rewritewhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.