pub enum Template {
GitHub {
owner: String,
repository: String,
release_only: bool,
version_type: Option<String>,
},
GitLab {
dist: String,
release_only: bool,
version_type: Option<String>,
},
PyPI {
package: String,
version_type: Option<String>,
},
Npmregistry {
package: String,
version_type: Option<String>,
},
Metacpan {
dist: String,
version_type: Option<String>,
},
}Expand description
Template with variant-specific parameters
Variants§
GitHub
GitHub template
Fields
GitLab
GitLab template
Fields
PyPI
PyPI template
Npmregistry
npm registry template
Fields
Metacpan
MetaCPAN template
Trait Implementations§
impl Eq for Template
impl StructuralPartialEq for Template
Auto Trait Implementations§
impl Freeze for Template
impl RefUnwindSafe for Template
impl Send for Template
impl Sync for Template
impl Unpin for Template
impl UnsafeUnpin for Template
impl UnwindSafe for Template
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