Struct git_checks_core::impl_prelude::CheckGitContext
source · pub struct CheckGitContext { /* private fields */ }
Expand description
Git context for use in checks.
Implementations§
source§impl CheckGitContext
impl CheckGitContext
sourcepub fn new(workarea: GitWorkArea, topic_owner: Identity) -> Self
pub fn new(workarea: GitWorkArea, topic_owner: Identity) -> Self
Create a new git context for checking a commit.
sourcepub fn topic_owner(&self) -> &Identity
pub fn topic_owner(&self) -> &Identity
The publisher of the branch.
sourcepub fn check_attr<A, P>(
&self,
attr: A,
path: P
) -> Result<AttributeState, AttributeError>
pub fn check_attr<A, P>( &self, attr: A, path: P ) -> Result<AttributeState, AttributeError>
Check an attribute of the given path.
sourcepub fn workarea(&self) -> &GitWorkArea
pub fn workarea(&self) -> &GitWorkArea
The workarea used for check operations.
sourcepub fn workarea_mut(&mut self) -> &mut GitWorkArea
pub fn workarea_mut(&mut self) -> &mut GitWorkArea
The workarea used for check operations.
sourcepub fn submodule_config(&self) -> &SubmoduleConfig
pub fn submodule_config(&self) -> &SubmoduleConfig
The submodule configuration for the repository.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CheckGitContext
impl RefUnwindSafe for CheckGitContext
impl Send for CheckGitContext
impl Sync for CheckGitContext
impl Unpin for CheckGitContext
impl UnwindSafe for CheckGitContext
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