pub enum CommitTemplatePropertyKind<'repo> {
Core(CoreTemplatePropertyKind<'repo>),
Commit(Box<dyn TemplateProperty<Output = Commit> + 'repo>),
CommitOpt(Box<dyn TemplateProperty<Output = Option<Commit>> + 'repo>),
CommitList(Box<dyn TemplateProperty<Output = Vec<Commit>> + 'repo>),
RefName(Box<dyn TemplateProperty<Output = Rc<RefName>> + 'repo>),
RefNameOpt(Box<dyn TemplateProperty<Output = Option<Rc<RefName>>> + 'repo>),
RefNameList(Box<dyn TemplateProperty<Output = Vec<Rc<RefName>>> + 'repo>),
CommitOrChangeId(Box<dyn TemplateProperty<Output = CommitOrChangeId> + 'repo>),
ShortestIdPrefix(Box<dyn TemplateProperty<Output = ShortestIdPrefix> + 'repo>),
TreeDiff(Box<dyn TemplateProperty<Output = TreeDiff> + 'repo>),
}Variants§
Core(CoreTemplatePropertyKind<'repo>)
Commit(Box<dyn TemplateProperty<Output = Commit> + 'repo>)
CommitOpt(Box<dyn TemplateProperty<Output = Option<Commit>> + 'repo>)
CommitList(Box<dyn TemplateProperty<Output = Vec<Commit>> + 'repo>)
RefName(Box<dyn TemplateProperty<Output = Rc<RefName>> + 'repo>)
RefNameOpt(Box<dyn TemplateProperty<Output = Option<Rc<RefName>>> + 'repo>)
RefNameList(Box<dyn TemplateProperty<Output = Vec<Rc<RefName>>> + 'repo>)
CommitOrChangeId(Box<dyn TemplateProperty<Output = CommitOrChangeId> + 'repo>)
ShortestIdPrefix(Box<dyn TemplateProperty<Output = ShortestIdPrefix> + 'repo>)
TreeDiff(Box<dyn TemplateProperty<Output = TreeDiff> + 'repo>)
Trait Implementations§
source§impl<'repo> IntoTemplateProperty<'repo> for CommitTemplatePropertyKind<'repo>
impl<'repo> IntoTemplateProperty<'repo> for CommitTemplatePropertyKind<'repo>
fn try_into_boolean( self, ) -> Option<Box<dyn TemplateProperty<Output = bool> + 'repo>>
fn try_into_integer( self, ) -> Option<Box<dyn TemplateProperty<Output = i64> + 'repo>>
fn try_into_plain_text( self, ) -> Option<Box<dyn TemplateProperty<Output = String> + 'repo>>
fn try_into_template(self) -> Option<Box<dyn Template + 'repo>>
Auto Trait Implementations§
impl<'repo> Freeze for CommitTemplatePropertyKind<'repo>
impl<'repo> !RefUnwindSafe for CommitTemplatePropertyKind<'repo>
impl<'repo> !Send for CommitTemplatePropertyKind<'repo>
impl<'repo> !Sync for CommitTemplatePropertyKind<'repo>
impl<'repo> Unpin for CommitTemplatePropertyKind<'repo>
impl<'repo> !UnwindSafe for CommitTemplatePropertyKind<'repo>
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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