pub struct AnnotationNameAttributes {
pub filename: String,
pub created: DateTimeUtc,
pub modified: DateTimeUtc,
pub location: String,
}
Expand description
A struct representing the rendered filename for a template with
ContextMode::Annotation
along with a set of attributes used for sorting within
a template.
For example:
{% for name in names.annotations | sort(attribute="location") -%}
![[{{ name.filename }}]]
{% endfor %}
See AnnotationMetadata
for undocumented fields.
Fields§
§filename: String
The rendered filename for a template with
ContextMode::Annotation
.
created: DateTimeUtc
§modified: DateTimeUtc
§location: String
Trait Implementations§
Source§impl Clone for AnnotationNameAttributes
impl Clone for AnnotationNameAttributes
Source§fn clone(&self) -> AnnotationNameAttributes
fn clone(&self) -> AnnotationNameAttributes
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 AnnotationNameAttributes
impl Debug for AnnotationNameAttributes
Source§impl Default for AnnotationNameAttributes
impl Default for AnnotationNameAttributes
Source§fn default() -> AnnotationNameAttributes
fn default() -> AnnotationNameAttributes
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnnotationNameAttributes
impl RefUnwindSafe for AnnotationNameAttributes
impl Send for AnnotationNameAttributes
impl Sync for AnnotationNameAttributes
impl Unpin for AnnotationNameAttributes
impl UnwindSafe for AnnotationNameAttributes
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more