pub struct CreateServerReq {
pub auth_header: Option<String>,
pub listing: Option<String>,
pub name: Option<String>,
pub secret: Option<String>,
pub url: Option<String>,
}Fields§
§auth_header: Option<String>AuthHeader is the request header the credential is injected into, e.g. "Authorization". Empty means the server needs no credential.
listing: Option<String>Listing enables a CATALOG entry instead — the id from GET /v1/tools/catalog. The endpoint is the listing’s own streamable-http remote, so a listing that only ships a stdio package is refused: there is nothing to reach yet.
name: Option<String>Name labels the server for the org. Required with URL; with Listing it defaults to the listing’s own title.
secret: Option<String>Secret is the credential VALUE. It is sealed into KMS under a per-org ref and never stored in SQLite, never listed, and never returned.
url: Option<String>URL is the server’s JSON-RPC endpoint. It must be an http(s) URL naming a PUBLIC host: loopback, link-local, private and cloud-metadata addresses are refused here and again when the dialer connects.
Implementations§
Source§impl CreateServerReq
impl CreateServerReq
pub fn new() -> CreateServerReq
Trait Implementations§
Source§impl Clone for CreateServerReq
impl Clone for CreateServerReq
Source§fn clone(&self) -> CreateServerReq
fn clone(&self) -> CreateServerReq
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more