pub struct BridgeResult {
pub summary: Option<String>,
pub directive: Option<String>,
pub params: Vec<ParamEntry>,
pub returns: Option<ReturnsEntry>,
pub throws: Vec<ThrowsEntry>,
pub examples: Vec<String>,
pub source: BridgeSource,
pub source_formats: Vec<SourceFormat>,
}Expand description
@acp:summary “Result of bridging native documentation with ACP annotations”
Fields§
§summary: Option<String>Merged summary/description
directive: Option<String>AI behavioral directive for the function/method
params: Vec<ParamEntry>Parameter entries with provenance
returns: Option<ReturnsEntry>Returns entry with provenance
throws: Vec<ThrowsEntry>Throws entries with provenance
examples: Vec<String>Examples extracted from documentation
source: BridgeSourceOverall source of the merged documentation
source_formats: Vec<SourceFormat>Source formats that contributed to this result
Implementations§
Source§impl BridgeResult
impl BridgeResult
Sourcepub fn from_acp(summary: Option<String>, directive: Option<String>) -> Self
pub fn from_acp(summary: Option<String>, directive: Option<String>) -> Self
@acp:summary “Create from pure ACP annotations (explicit source)”
Sourcepub fn from_native(parsed: &ParsedDocumentation, format: SourceFormat) -> Self
pub fn from_native(parsed: &ParsedDocumentation, format: SourceFormat) -> Self
@acp:summary “Create from converted native documentation”
Trait Implementations§
Source§impl Clone for BridgeResult
impl Clone for BridgeResult
Source§fn clone(&self) -> BridgeResult
fn clone(&self) -> BridgeResult
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 BridgeResult
impl Debug for BridgeResult
Source§impl Default for BridgeResult
impl Default for BridgeResult
Source§fn default() -> BridgeResult
fn default() -> BridgeResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BridgeResult
impl RefUnwindSafe for BridgeResult
impl Send for BridgeResult
impl Sync for BridgeResult
impl Unpin for BridgeResult
impl UnwindSafe for BridgeResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more