pub struct ModuleRegisterRequest {
pub id: String,
pub name: String,
pub version: String,
pub publisher: String,
pub description: String,
pub base_url: String,
pub nav: Vec<NavEntry>,
pub subscribes: Option<Vec<String>>,
pub role: Option<String>,
}Expand description
The manifest a sidecar plugin presents to register itself (POST /api/v1/modules). The kernel mints
a scoped API key + a webhook subscription from it and reverse-proxies /m/{id}/* to base_url.
Fields§
§id: StringStable id (slug): the /m/{id}/ mount + nav key. Must not collide with a compiled module.
name: String§version: String§publisher: String§description: String§base_url: StringThe sidecar’s origin the kernel reverse-proxies to (http/https), e.g. http://127.0.0.1:9123.
Nav entries to surface (defaults to one entry at /{id} if omitted).
subscribes: Option<Vec<String>>Event types to deliver to the sidecar’s webhook (["*"] = all). Defaults to all.
role: Option<String>Role of the minted API key. Restricted to least-privilege (viewer | integration).
Trait Implementations§
Source§impl Clone for ModuleRegisterRequest
impl Clone for ModuleRegisterRequest
Source§fn clone(&self) -> ModuleRegisterRequest
fn clone(&self) -> ModuleRegisterRequest
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 moreSource§impl Debug for ModuleRegisterRequest
impl Debug for ModuleRegisterRequest
Source§impl<'de> Deserialize<'de> for ModuleRegisterRequest
impl<'de> Deserialize<'de> for ModuleRegisterRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ModuleRegisterRequest
impl RefUnwindSafe for ModuleRegisterRequest
impl Send for ModuleRegisterRequest
impl Sync for ModuleRegisterRequest
impl Unpin for ModuleRegisterRequest
impl UnsafeUnpin for ModuleRegisterRequest
impl UnwindSafe for ModuleRegisterRequest
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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