pub struct DetectedEndpoint {
pub transport: Transport,
pub direction: Direction,
pub contract: String,
pub owner_qname: String,
pub file: String,
pub line: u32,
pub confidence: f64,
pub note: Option<String>,
}Expand description
An endpoint detected by a language adapter, before the index pipeline
enriches it with this repo’s repo_id and the owning symbol’s symbol_id.
Adapters work in qnames, so a DetectedEndpoint names its owner by qname.
Fields§
§transport: Transport§direction: Direction§contract: String§owner_qname: Stringqname of the symbol that owns this endpoint — the route handler, or the function containing the client call.
file: String§line: u32§confidence: f64§note: Option<String>Implementations§
Source§impl DetectedEndpoint
impl DetectedEndpoint
Sourcepub fn into_endpoint(self, repo_id: &str, symbol_id: &str) -> ServiceEndpoint
pub fn into_endpoint(self, repo_id: &str, symbol_id: &str) -> ServiceEndpoint
Promote to a full ServiceEndpoint once repo + symbol identity resolve.
Trait Implementations§
Source§impl Clone for DetectedEndpoint
impl Clone for DetectedEndpoint
Source§impl Debug for DetectedEndpoint
impl Debug for DetectedEndpoint
Source§impl PartialEq for DetectedEndpoint
impl PartialEq for DetectedEndpoint
impl StructuralPartialEq for DetectedEndpoint
Auto Trait Implementations§
impl Freeze for DetectedEndpoint
impl RefUnwindSafe for DetectedEndpoint
impl Send for DetectedEndpoint
impl Sync for DetectedEndpoint
impl Unpin for DetectedEndpoint
impl UnsafeUnpin for DetectedEndpoint
impl UnwindSafe for DetectedEndpoint
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