pub struct DocumentContent {
pub body: String,
pub acceptance_criteria: Option<String>,
}
Expand description
Document content containing the main body and acceptance criteria
Fields§
§body: String
Main content body (without frontmatter)
acceptance_criteria: Option<String>
Acceptance criteria section (if present)
Implementations§
Source§impl DocumentContent
impl DocumentContent
Sourcepub fn with_acceptance_criteria(body: &str, acceptance_criteria: &str) -> Self
pub fn with_acceptance_criteria(body: &str, acceptance_criteria: &str) -> Self
Create content with both body and acceptance criteria
Sourcepub fn from_markdown(content: &str) -> Self
pub fn from_markdown(content: &str) -> Self
Parse content from markdown, separating main content from acceptance criteria
Sourcepub fn full_content(&self) -> String
pub fn full_content(&self) -> String
Get the full content including acceptance criteria
Sourcepub fn has_acceptance_criteria(&self) -> bool
pub fn has_acceptance_criteria(&self) -> bool
Check if acceptance criteria are present
Trait Implementations§
Source§impl Clone for DocumentContent
impl Clone for DocumentContent
Source§fn clone(&self) -> DocumentContent
fn clone(&self) -> DocumentContent
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 DocumentContent
impl Debug for DocumentContent
Source§impl<'de> Deserialize<'de> for DocumentContent
impl<'de> Deserialize<'de> for DocumentContent
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 DocumentContent
impl RefUnwindSafe for DocumentContent
impl Send for DocumentContent
impl Sync for DocumentContent
impl Unpin for DocumentContent
impl UnwindSafe for DocumentContent
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<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self
to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self
to an expression for Diesel’s query builder. Read more