pub struct GlobalFileChange {
pub status: DocDiffFileStatus,
pub path: String,
pub old_path: Option<String>,
pub old_text: String,
pub new_text: String,
}Expand description
One changed doc file within a single commit (the new side, plus its
old content from the first parent). The global analogue of the per-file
RevisionContent.
Fields§
§status: DocDiffFileStatus§path: StringRepo-relative path of the doc at this revision (the new side).
old_path: Option<String>Set when this file was renamed (the old side path).
old_text: String§new_text: StringTrait Implementations§
Source§impl Clone for GlobalFileChange
impl Clone for GlobalFileChange
Source§fn clone(&self) -> GlobalFileChange
fn clone(&self) -> GlobalFileChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlobalFileChange
impl Debug for GlobalFileChange
impl Eq for GlobalFileChange
Source§impl PartialEq for GlobalFileChange
impl PartialEq for GlobalFileChange
impl StructuralPartialEq for GlobalFileChange
Auto Trait Implementations§
impl Freeze for GlobalFileChange
impl RefUnwindSafe for GlobalFileChange
impl Send for GlobalFileChange
impl Sync for GlobalFileChange
impl Unpin for GlobalFileChange
impl UnsafeUnpin for GlobalFileChange
impl UnwindSafe for GlobalFileChange
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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