pub struct TemplateRecord {
pub slug: String,
pub collection_slug: String,
pub name: String,
pub node_count: usize,
pub edge_count: usize,
pub updated_at: DateTime<Utc>,
pub has_dsl: bool,
pub source: Option<TemplateSource>,
}Fields§
§slug: String§collection_slug: StringAlways set. DEFAULT_COLLECTION_SLUG when no template_membership
row exists for this template.
name: String§node_count: usize§edge_count: usize§updated_at: DateTime<Utc>§has_dsl: boolTrue if a sibling <slug>.flow text file exists alongside the JSON.
Written automatically by save; surfaced to the UI as a small indicator.
source: Option<TemplateSource>Some only when the template was installed via the Template Hub and
the source columns on the membership row are populated.
Trait Implementations§
Source§impl Clone for TemplateRecord
impl Clone for TemplateRecord
Source§fn clone(&self) -> TemplateRecord
fn clone(&self) -> TemplateRecord
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 TemplateRecord
impl Debug for TemplateRecord
Source§impl<'de> Deserialize<'de> for TemplateRecord
impl<'de> Deserialize<'de> for TemplateRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TemplateRecord
impl RefUnwindSafe for TemplateRecord
impl Send for TemplateRecord
impl Sync for TemplateRecord
impl Unpin for TemplateRecord
impl UnsafeUnpin for TemplateRecord
impl UnwindSafe for TemplateRecord
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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