pub struct PreparedTemplate {
pub body: String,
pub errors: Vec<ResolutionError>,
pub warnings: Vec<String>,
pub fallbacks: Vec<LidFallback>,
}Expand description
Per-field result of resolving a templatized body.
Fields§
§body: StringFully-resolved body. When errors is non-empty some __BRAZESYNC__
tokens may still be present — the caller treats the field as
failed and surfaces the errors.
errors: Vec<ResolutionError>Unresolved placeholders, retired-namespace tokens, etc.
warnings: Vec<String>Non-fatal warnings — ambiguous URL matches, count mismatches, stripped cb_id filters on new resources.
fallbacks: Vec<LidFallback>Drift-fallback lid values: template placeholders that had no
matching remote anchor and were resolved with a generated slug.
Brand-new-resource fallbacks are not recorded here — they are
the expected path and would be noise. Populated only when a
remote body was provided but came up short.
Trait Implementations§
Source§impl Clone for PreparedTemplate
impl Clone for PreparedTemplate
Source§fn clone(&self) -> PreparedTemplate
fn clone(&self) -> PreparedTemplate
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 moreAuto Trait Implementations§
impl Freeze for PreparedTemplate
impl RefUnwindSafe for PreparedTemplate
impl Send for PreparedTemplate
impl Sync for PreparedTemplate
impl Unpin for PreparedTemplate
impl UnsafeUnpin for PreparedTemplate
impl UnwindSafe for PreparedTemplate
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