pub struct RenderedSourceFile {
pub relative_path: &'static str,
pub adapter_id: &'static str,
pub template_version: u32,
pub begin_marker: String,
pub end_marker: String,
pub managed_block: String,
}Expand description
A rendered source file: the path hint Lifeloop owns, the managed section’s begin/end marker text, and the body Lifeloop would write inside the markers. Pure data — the caller decides how to write it.
Fields§
§relative_path: &'static strRepo-relative path Lifeloop owns the managed section for. The caller resolves the absolute path.
adapter_id: &'static strAdapter id this rendering targets.
template_version: u32Template version — bumped when the body shape changes in a way that requires stale-section replacement.
begin_marker: StringThe begin marker line (no trailing newline).
end_marker: StringThe end marker line (no trailing newline).
managed_block: StringThe full block, begin marker through end marker, terminated by a newline. This is what the apply layer compares for no-op detection and substitutes for stale-section replacement.
Trait Implementations§
Source§impl Clone for RenderedSourceFile
impl Clone for RenderedSourceFile
Source§fn clone(&self) -> RenderedSourceFile
fn clone(&self) -> RenderedSourceFile
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 RenderedSourceFile
impl Debug for RenderedSourceFile
Source§impl PartialEq for RenderedSourceFile
impl PartialEq for RenderedSourceFile
Source§fn eq(&self, other: &RenderedSourceFile) -> bool
fn eq(&self, other: &RenderedSourceFile) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RenderedSourceFile
impl StructuralPartialEq for RenderedSourceFile
Auto Trait Implementations§
impl Freeze for RenderedSourceFile
impl RefUnwindSafe for RenderedSourceFile
impl Send for RenderedSourceFile
impl Sync for RenderedSourceFile
impl Unpin for RenderedSourceFile
impl UnsafeUnpin for RenderedSourceFile
impl UnwindSafe for RenderedSourceFile
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.