pub struct EmbeddedFile {
pub content: &'static str,
pub target: &'static str,
pub executable: bool,
}Expand description
An embedded file that ships with the Joy binary.
Fields§
§content: &'static strContent (from include_str!).
target: &'static strTarget path relative to .joy/ (e.g. hooks/commit-msg).
executable: boolWhether the file should be executable (Unix only).
Auto Trait Implementations§
impl Freeze for EmbeddedFile
impl RefUnwindSafe for EmbeddedFile
impl Send for EmbeddedFile
impl Sync for EmbeddedFile
impl Unpin for EmbeddedFile
impl UnsafeUnpin for EmbeddedFile
impl UnwindSafe for EmbeddedFile
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