pub struct TemplateSource {
pub relative_path: String,
pub sha256: String,
}Expand description
Per-template provenance inside a source publication.
Fields§
§relative_path: StringPath of the source file relative to the publication archive root.
sha256: StringSHA-256 of the source file’s raw bytes.
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for TemplateSource
impl<'__de, __Context> BorrowDecode<'__de, __Context> for TemplateSource
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for TemplateSource
impl Clone for TemplateSource
Source§fn clone(&self) -> TemplateSource
fn clone(&self) -> TemplateSource
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 TemplateSource
impl Debug for TemplateSource
Source§impl<__Context> Decode<__Context> for TemplateSource
impl<__Context> Decode<__Context> for TemplateSource
Source§impl Encode for TemplateSource
impl Encode for TemplateSource
impl Eq for TemplateSource
Source§impl PartialEq for TemplateSource
impl PartialEq for TemplateSource
impl StructuralPartialEq for TemplateSource
Auto Trait Implementations§
impl Freeze for TemplateSource
impl RefUnwindSafe for TemplateSource
impl Send for TemplateSource
impl Sync for TemplateSource
impl Unpin for TemplateSource
impl UnsafeUnpin for TemplateSource
impl UnwindSafe for TemplateSource
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