pub struct BufIntegration { /* private fields */ }Expand description
Buf.build CLI integration.
Provides optional integration with the buf CLI for enhanced proto workflows. All operations gracefully degrade if buf is not installed.
Implementations§
Source§impl BufIntegration
impl BufIntegration
Sourcepub fn is_available(&self) -> bool
pub fn is_available(&self) -> bool
Check if buf CLI is available.
Sourcepub fn get_version(&self) -> BufResult<String>
pub fn get_version(&self) -> BufResult<String>
Get buf CLI version.
Sourcepub fn lint(&self, proto_dir: &Path) -> BufResult<BufLintResult>
pub fn lint(&self, proto_dir: &Path) -> BufResult<BufLintResult>
Lint proto files in a directory.
Returns Ok with lint output, or gracefully degrades if buf not installed.
Sourcepub fn breaking_check(
&self,
new_dir: &Path,
old_dir: &Path,
) -> BufResult<BufBreakingResult>
pub fn breaking_check( &self, new_dir: &Path, old_dir: &Path, ) -> BufResult<BufBreakingResult>
Check for breaking changes between two proto directories.
Sourcepub fn generate_buf_yaml() -> String
pub fn generate_buf_yaml() -> String
Generate a buf.yaml configuration file content.
Sourcepub fn generate_buf_gen_yaml(languages: &[BufLanguage]) -> String
pub fn generate_buf_gen_yaml(languages: &[BufLanguage]) -> String
Generate a buf.gen.yaml for code generation.
Trait Implementations§
Auto Trait Implementations§
impl Forget for BufIntegration
impl Freeze for BufIntegration
impl Move for BufIntegration
impl RefUnwindSafe for BufIntegration
impl Send for BufIntegrationwhere
RawVecInner: Send,
impl Sync for BufIntegrationwhere
RawVecInner: Sync,
impl Unpin for BufIntegration
impl UnsafeUnpin for BufIntegration
impl UnwindSafe for BufIntegrationwhere
RawVecInner: UnwindSafe,
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