pub struct ListResults {
pub templates: Vec<Template>,
pub warnings: Vec<(String, InstalledTemplateWarning)>,
pub skipped: Vec<Template>,
}Expand description
The result of listing templates.
Fields§
§templates: Vec<Template>The installed templates.
warnings: Vec<(String, InstalledTemplateWarning)>Any warnings identified during the list operation.
skipped: Vec<Template>Any skipped templates (populated as a result of filtering by tags).
Implementations§
Source§impl ListResults
impl ListResults
Sourcepub fn needs_install(&self) -> bool
pub fn needs_install(&self) -> bool
Returns true if no templates were found or skipped, and the UI should prompt to install templates. This is specifically for interactive use and returns false if not connected to a terminal.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ListResults
impl !RefUnwindSafe for ListResults
impl Send for ListResults
impl Sync for ListResults
impl Unpin for ListResults
impl !UnwindSafe for ListResults
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