Struct workspace_node_tools::git::conventional::ConventionalPackage
source · pub struct ConventionalPackage {
pub package_info: PackageInfo,
pub conventional_config: Value,
pub conventional_commits: Value,
pub changelog_output: String,
}Fields§
§package_info: PackageInfo§conventional_config: Value§conventional_commits: Value§changelog_output: StringImplementations§
source§impl ConventionalPackage
impl ConventionalPackage
pub fn new(package_info: PackageInfo) -> Self
pub fn define_config( &self, owner: String, repo: String, domain: String, title: Option<String>, options: Option<Config>, ) -> Config
pub fn process_commits( &self, commits: &Vec<Commit>, config: &GitConfig, ) -> Vec<GitCommit<'_>>
pub fn generate_changelog( &self, commits: &Vec<GitCommit<'_>>, config: &Config, version: Option<String>, ) -> String
Trait Implementations§
source§impl Clone for ConventionalPackage
impl Clone for ConventionalPackage
source§fn clone(&self) -> ConventionalPackage
fn clone(&self) -> ConventionalPackage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ConventionalPackage
impl Debug for ConventionalPackage
source§impl<'de> Deserialize<'de> for ConventionalPackage
impl<'de> Deserialize<'de> for ConventionalPackage
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
source§impl FromNapiValue for ConventionalPackage
impl FromNapiValue for ConventionalPackage
source§unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
unsafe fn from_napi_value(env: napi_env, napi_val: napi_value) -> Result<Self>
Safety Read more
fn from_unknown(value: JsUnknown) -> Result<Self, Error>
source§impl Serialize for ConventionalPackage
impl Serialize for ConventionalPackage
source§impl ToNapiValue for ConventionalPackage
impl ToNapiValue for ConventionalPackage
source§unsafe fn to_napi_value(
env: napi_env,
val: ConventionalPackage,
) -> Result<napi_value>
unsafe fn to_napi_value( env: napi_env, val: ConventionalPackage, ) -> Result<napi_value>
Safety Read more
source§impl TypeName for ConventionalPackage
impl TypeName for ConventionalPackage
source§impl ValidateNapiValue for ConventionalPackage
impl ValidateNapiValue for ConventionalPackage
source§unsafe fn validate(
env: *mut napi_env__,
napi_val: *mut napi_value__,
) -> Result<*mut napi_value__, Error>
unsafe fn validate( env: *mut napi_env__, napi_val: *mut napi_value__, ) -> Result<*mut napi_value__, Error>
Safety Read more
Auto Trait Implementations§
impl Freeze for ConventionalPackage
impl RefUnwindSafe for ConventionalPackage
impl Send for ConventionalPackage
impl Sync for ConventionalPackage
impl Unpin for ConventionalPackage
impl UnwindSafe for ConventionalPackage
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more