pub struct TemplateTags<'a> { /* private fields */ }Expand description
Manages template tags.
Implementations§
Source§impl TemplateTags<'_>
impl TemplateTags<'_>
Sourcepub async fn list(&self) -> Result<Vec<TemplateTag>>
pub async fn list(&self) -> Result<Vec<TemplateTag>>
Every tag, each with its template_count.
Sourcepub async fn create(&self, name: &str, color: &str) -> Result<TemplateTag>
pub async fn create(&self, name: &str, color: &str) -> Result<TemplateTag>
color: gray, red, orange, amber, green, teal, blue, purple or pink.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for TemplateTags<'a>
impl<'a> !UnwindSafe for TemplateTags<'a>
impl<'a> Freeze for TemplateTags<'a>
impl<'a> Send for TemplateTags<'a>
impl<'a> Sync for TemplateTags<'a>
impl<'a> Unpin for TemplateTags<'a>
impl<'a> UnsafeUnpin for TemplateTags<'a>
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