pub struct HarnessNodeGitDiffV1 {
pub origin: HarnessNodeWorkspaceOriginV1,
pub mode: HarnessGitDiffModeV1,
pub path: Option<HarnessRepositoryPathV1>,
pub text: String,
pub truncated: bool,
}Expand description
Node-scoped sibling of HarnessRunGitDiffV1.
Fields§
§origin: HarnessNodeWorkspaceOriginV1§mode: HarnessGitDiffModeV1§path: Option<HarnessRepositoryPathV1>§text: String§truncated: boolImplementations§
Source§impl HarnessNodeGitDiffV1
impl HarnessNodeGitDiffV1
pub fn validate(&self) -> Result<(), HarnessOperatorApiError>
pub fn validate_for( &self, node_id: &str, workspace_id: &str, mode: &HarnessGitDiffModeV1, path: Option<&HarnessRepositoryPathV1>, ) -> Result<(), HarnessOperatorApiError>
Trait Implementations§
Source§impl Clone for HarnessNodeGitDiffV1
impl Clone for HarnessNodeGitDiffV1
Source§impl Debug for HarnessNodeGitDiffV1
impl Debug for HarnessNodeGitDiffV1
Source§impl<'de> Deserialize<'de> for HarnessNodeGitDiffV1
impl<'de> Deserialize<'de> for HarnessNodeGitDiffV1
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 HarnessNodeGitDiffV1
Source§impl PartialEq for HarnessNodeGitDiffV1
impl PartialEq for HarnessNodeGitDiffV1
Source§impl Serialize for HarnessNodeGitDiffV1
impl Serialize for HarnessNodeGitDiffV1
impl StructuralPartialEq for HarnessNodeGitDiffV1
Auto Trait Implementations§
impl Freeze for HarnessNodeGitDiffV1
impl RefUnwindSafe for HarnessNodeGitDiffV1
impl Send for HarnessNodeGitDiffV1
impl Sync for HarnessNodeGitDiffV1
impl Unpin for HarnessNodeGitDiffV1
impl UnsafeUnpin for HarnessNodeGitDiffV1
impl UnwindSafe for HarnessNodeGitDiffV1
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