pub enum UuidRule {
Singleton,
Named,
NamedNoUuid,
}Expand description
How a resource type carries its identity (attributes.uuid) and where its
files sit. The three classes come from the corpus census (RESEARCH
Pattern 4) and the 8.3.6 captures (decision CD3).
Variants§
Singleton
One resource per type: files sit directly in <module>/<type>/, and
its resource.json carries no uuid.
Named
Many resources per type, one directory each, every one with an
attributes.uuid. Render derives one for a resource that has none.
NamedNoUuid
Named, but the corpus resources of this type carry no uuid
(ignition/store-and-forward-engine,
com.inductiveautomation.perspective/themes). Render never
synthesizes one (RESEARCH Pitfall 5); an existing uuid is kept, because
CD3 saw an 8.3.6 gateway write one for store-and-forward-engine.
Trait Implementations§
impl Copy for UuidRule
impl Eq for UuidRule
impl StructuralPartialEq for UuidRule
Auto Trait Implementations§
impl Freeze for UuidRule
impl RefUnwindSafe for UuidRule
impl Send for UuidRule
impl Sync for UuidRule
impl Unpin for UuidRule
impl UnsafeUnpin for UuidRule
impl UnwindSafe for UuidRule
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§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.