pub enum RepositoryEntry {
File {
path: String,
content: String,
},
Directory {
path: String,
children: Vec<Self>,
},
}Expand description
Input tree describing a repository resource to formalize.
This is the deterministic, filesystem-free representation a caller builds
before formalization. A real directory walk maps to nested
RepositoryEntry::Directory / RepositoryEntry::File nodes.
Variants§
File
A single file with its repository-relative path and full content.
Directory
A directory with its repository-relative path and ordered children.
Implementations§
Trait Implementations§
Source§impl Clone for RepositoryEntry
impl Clone for RepositoryEntry
Source§fn clone(&self) -> RepositoryEntry
fn clone(&self) -> RepositoryEntry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RepositoryEntry
impl Debug for RepositoryEntry
impl Eq for RepositoryEntry
Source§impl PartialEq for RepositoryEntry
impl PartialEq for RepositoryEntry
impl StructuralPartialEq for RepositoryEntry
Auto Trait Implementations§
impl Freeze for RepositoryEntry
impl RefUnwindSafe for RepositoryEntry
impl Send for RepositoryEntry
impl Sync for RepositoryEntry
impl Unpin for RepositoryEntry
impl UnsafeUnpin for RepositoryEntry
impl UnwindSafe for RepositoryEntry
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.