pub struct HunksAnswer {
pub oid_a: GitOid,
pub oid_b: GitOid,
pub path: String,
pub lines: Vec<PatchLine>,
pub withheld: Vec<Withheld>,
}Expand description
One file’s patch text between two checkpoints, and what could not be shown.
Both ends travel back with the answer because they are what makes it cacheable: two commit ids never change, so whoever asked may keep this for as long as they like.
Fields§
§oid_a: GitOid§oid_b: GitOid§path: String§lines: Vec<PatchLine>§withheld: Vec<Withheld>Lines that matched a credential shape. They are named and not echoed, for the reason a staged blob’s scan gives about its own hits: printing the bytes to prove a leak is the leak.
Trait Implementations§
Source§impl Clone for HunksAnswer
impl Clone for HunksAnswer
Source§impl Debug for HunksAnswer
impl Debug for HunksAnswer
Source§impl<'de> Deserialize<'de> for HunksAnswer
impl<'de> Deserialize<'de> for HunksAnswer
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
impl Eq for HunksAnswer
Source§impl PartialEq for HunksAnswer
impl PartialEq for HunksAnswer
Source§impl Serialize for HunksAnswer
impl Serialize for HunksAnswer
impl StructuralPartialEq for HunksAnswer
Auto Trait Implementations§
impl Freeze for HunksAnswer
impl RefUnwindSafe for HunksAnswer
impl Send for HunksAnswer
impl Sync for HunksAnswer
impl Unpin for HunksAnswer
impl UnsafeUnpin for HunksAnswer
impl UnwindSafe for HunksAnswer
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