pub struct Docs {
pub architecture: Option<String>,
pub vision: Option<String>,
pub contributing: Option<String>,
}Expand description
Configurable paths to the project’s reference documentation, relative to
the project root. Used by joy ai init to support existing repos with
non-default doc layouts and read by AI tools via joy project get docs.<key>.
Fields§
§architecture: Option<String>§vision: Option<String>§contributing: Option<String>Implementations§
Source§impl Docs
impl Docs
pub const DEFAULT_ARCHITECTURE: &'static str = "docs/dev/architecture/README.md"
pub const DEFAULT_VISION: &'static str = "docs/dev/vision/README.md"
pub const DEFAULT_CONTRIBUTING: &'static str = "CONTRIBUTING.md"
pub fn is_empty(&self) -> bool
Sourcepub fn architecture_or_default(&self) -> &str
pub fn architecture_or_default(&self) -> &str
Configured architecture path or the default if unset.
Sourcepub fn vision_or_default(&self) -> &str
pub fn vision_or_default(&self) -> &str
Configured vision path or the default if unset.
Sourcepub fn contributing_or_default(&self) -> &str
pub fn contributing_or_default(&self) -> &str
Configured contributing path or the default if unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Docs
impl<'de> Deserialize<'de> for Docs
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
impl StructuralPartialEq for Docs
Auto Trait Implementations§
impl Freeze for Docs
impl RefUnwindSafe for Docs
impl Send for Docs
impl Sync for Docs
impl Unpin for Docs
impl UnsafeUnpin for Docs
impl UnwindSafe for Docs
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