pub struct ExternalApiNode<'a> {
pub name: &'a str,
pub base_url: Option<&'a str>,
pub protocol: Option<&'a str>,
pub provider: Option<&'a str>,
pub service: Option<&'a str>,
}Expand description
Structured view of the properties we expect on an ExternalApi node.
This represents a remote system or API surface that our code calls into.
Multiple internal functions across projects/frameworks can all point to
the same ExternalApi node via CALLS_EXTERNAL_API edges.
Fields§
§name: &'a strHuman-friendly logical name, e.g. “VendorX”, “Stripe”, “GDS-Search”.
base_url: Option<&'a str>Base URL if it is an HTTP(S) API, e.g. “https://api.vendorx.com”.
protocol: Option<&'a str>Protocol such as “http”, “https”, “grpc”, “kafka”.
provider: Option<&'a str>Provider or organization behind the API, e.g. “VendorX”.
service: Option<&'a str>Logical service domain, e.g. “payments”, “inventory”, “search”.
Trait Implementations§
Source§impl<'a> Clone for ExternalApiNode<'a>
impl<'a> Clone for ExternalApiNode<'a>
Source§fn clone(&self) -> ExternalApiNode<'a>
fn clone(&self) -> ExternalApiNode<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for ExternalApiNode<'a>
impl<'a> RefUnwindSafe for ExternalApiNode<'a>
impl<'a> Send for ExternalApiNode<'a>
impl<'a> Sync for ExternalApiNode<'a>
impl<'a> Unpin for ExternalApiNode<'a>
impl<'a> UnsafeUnpin for ExternalApiNode<'a>
impl<'a> UnwindSafe for ExternalApiNode<'a>
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