pub struct QuillReference {
pub name: String,
pub selector: VersionSelector,
}Expand description
Complete reference to a Quill template with name and version selector
§Examples
use quillmark_core::version::QuillReference;
use std::str::FromStr;
let ref1 = QuillReference::from_str("resume_template@2.1").unwrap();
assert_eq!(ref1.name, "resume_template");
let ref2 = QuillReference::from_str("resume_template").unwrap();Fields§
§name: StringTemplate name (e.g., “resume_template”)
selector: VersionSelectorVersion selector (defaults to Latest if not specified)
Implementations§
Trait Implementations§
Source§impl Clone for QuillReference
impl Clone for QuillReference
Source§fn clone(&self) -> QuillReference
fn clone(&self) -> QuillReference
Returns a duplicate of the value. Read more
1.0.0 · 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 QuillReference
impl Debug for QuillReference
Source§impl Display for QuillReference
impl Display for QuillReference
Source§impl FromStr for QuillReference
impl FromStr for QuillReference
Source§impl Hash for QuillReference
impl Hash for QuillReference
Source§impl PartialEq for QuillReference
impl PartialEq for QuillReference
impl Eq for QuillReference
impl StructuralPartialEq for QuillReference
Auto Trait Implementations§
impl Freeze for QuillReference
impl RefUnwindSafe for QuillReference
impl Send for QuillReference
impl Sync for QuillReference
impl Unpin for QuillReference
impl UnwindSafe for QuillReference
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.