pub struct ViewerTemplate {
pub cmd: String,
}Expand description
A viewer command template from voro.toml (DESIGN.md §11a): a shell command
run in a task’s checkout — or its worktree — to open its diff. Defined as a
named [viewers.<name>] table or the anonymous [viewer] default. The
placeholders {path} (checkout/worktree dir), {branch} (the task’s
branch), and {base} (the checkout’s default branch) are all optional, so
nothing is validated at parse time.
Fields§
§cmd: StringTrait Implementations§
Source§impl Clone for ViewerTemplate
impl Clone for ViewerTemplate
Source§fn clone(&self) -> ViewerTemplate
fn clone(&self) -> ViewerTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ViewerTemplate
impl Debug for ViewerTemplate
Source§impl<'de> Deserialize<'de> for ViewerTemplate
impl<'de> Deserialize<'de> for ViewerTemplate
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
Auto Trait Implementations§
impl Freeze for ViewerTemplate
impl RefUnwindSafe for ViewerTemplate
impl Send for ViewerTemplate
impl Sync for ViewerTemplate
impl Unpin for ViewerTemplate
impl UnsafeUnpin for ViewerTemplate
impl UnwindSafe for ViewerTemplate
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