pub trait Request {
// Required methods
fn method(&self) -> Method;
fn path(&self) -> &'static str;
fn parameters(&self) -> Vec<(String, String)>;
// Provided methods
fn sensitive_parameter_names(&self) -> &'static [&'static str] { ... }
fn request_parts(&self) -> RequestParts { ... }
}Expand description
Defines the behavior required from a request participant in the endpoint workflow.
Required Methods§
Sourcefn path(&self) -> &'static str
fn path(&self) -> &'static str
Returns the Gingr API path used for request capture and transport.
Sourcefn parameters(&self) -> Vec<(String, String)>
fn parameters(&self) -> Vec<(String, String)>
Returns the query or form parameters that document exactly what provider facts are requested.
Provided Methods§
Sourcefn sensitive_parameter_names(&self) -> &'static [&'static str]
fn sensitive_parameter_names(&self) -> &'static [&'static str]
Names provider parameters such as phone, email, or API key that must be redacted in diagnostics.
Sourcefn request_parts(&self) -> RequestParts
fn request_parts(&self) -> RequestParts
Converts the descriptor into transport-ready parts without sending a live Gingr request.