pub struct InitResult {
pub root: RepoPath,
pub created: Vec<RepoPath>,
pub updated: Vec<RepoPath>,
pub hand_written_indexes: Vec<RepoPath>,
}Expand description
InitResult is the report of sokf init --json: it holds the directory
of the store that the command created. It also holds the files that the
command wrote (CLI-2_AC-12).
Fields§
§root: RepoPathroot is the directory of the store that the command created.
created: Vec<RepoPath>created holds the files that the command created, ordered by path.
updated: Vec<RepoPath>updated holds the files that the command changed, ordered by path.
The list holds /.sokf/config.toml when the command added the store
to knowledge.roots, and is empty otherwise.
hand_written_indexes: Vec<RepoPath>hand_written_indexes holds each index.md under the directory that
is not in the generated form of an index, ordered by path. validate --fix doesn’t overwrite such a file, and validate reports it until
its content moves into a document (CLI-2_AC-32).
Trait Implementations§
Source§impl Clone for InitResult
impl Clone for InitResult
Source§impl Debug for InitResult
impl Debug for InitResult
impl Eq for InitResult
Source§impl JsonSchema for InitResult
impl JsonSchema for InitResult
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for InitResult
impl PartialEq for InitResult
Source§impl Serialize for InitResult
impl Serialize for InitResult
impl StructuralPartialEq for InitResult
Auto Trait Implementations§
impl Forget for InitResult
impl Freeze for InitResult
impl Move for InitResult
impl RefUnwindSafe for InitResult
impl Send for InitResult
impl Sync for InitResult
impl Unpin for InitResult
impl UnsafeUnpin for InitResult
impl UnwindSafe for InitResult
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.