pub struct Generator { /* private fields */ }Expand description
Builder for a CI workflow document.
§Example
use dev_ci::{Generator, Target};
let g = Generator::new().target(Target::GitHubActions);
assert_eq!(g.target_kind(), Target::GitHubActions);Implementations§
Source§impl Generator
impl Generator
Sourcepub fn with_msrv(self, version: impl Into<String>) -> Self
pub fn with_msrv(self, version: impl Into<String>) -> Self
Include an MSRV verification job pinned to the given Rust version.
Sourcepub fn target_kind(&self) -> Target
pub fn target_kind(&self) -> Target
Selected target.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Generator
impl RefUnwindSafe for Generator
impl Send for Generator
impl Sync for Generator
impl Unpin for Generator
impl UnsafeUnpin for Generator
impl UnwindSafe for Generator
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