pub struct FileChange<'a> {
pub project_key: &'a str,
pub file_path: &'a str,
pub deleted: bool,
pub stored_sha256: &'a str,
pub base_sha256: Option<&'a str>,
pub merged: bool,
pub merge_job: Option<&'a str>,
}Expand description
What a push or a delete changed, for subject_file.
Fields§
§project_key: &'a strThe project.
file_path: &'a strThe file, relative to the project’s memory directory.
deleted: boolA delete, rather than a push.
stored_sha256: &'a strcontent_sha256 of what is stored now; for a delete, of the empty
string.
base_sha256: Option<&'a str>The base_sha256 the push named, lowercase, if it named one.
merged: boolWhether the server merged the push with what it held, so what it
stored is not what was sent, and stored_sha256 is not the hash of
the pushed content.
merge_job: Option<&'a str>The job that will merge this push with the version it displaced, when it was queued for a worker rather than merged here.
Auto Trait Implementations§
impl<'a> Freeze for FileChange<'a>
impl<'a> RefUnwindSafe for FileChange<'a>
impl<'a> Send for FileChange<'a>
impl<'a> Sync for FileChange<'a>
impl<'a> Unpin for FileChange<'a>
impl<'a> UnsafeUnpin for FileChange<'a>
impl<'a> UnwindSafe for FileChange<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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