pub struct ModuleRegistration {Show 15 fields
pub id: String,
pub name: String,
pub version: String,
pub publisher: String,
pub description: String,
pub base_url: String,
pub nav: Json<Vec<NavEntry>>,
pub subscribes: Json<Vec<String>>,
pub role: String,
pub api_key_id: Option<String>,
pub webhook_id: Option<String>,
pub health: String,
pub health_checked_at: Option<DateTime<Utc>>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
A stored sidecar registration row.
Fields§
§id: String§name: String§version: String§publisher: String§description: String§base_url: StringJSON array of NavEntry.
subscribes: Json<Vec<String>>JSON array of event-type tokens.
role: String§api_key_id: Option<String>§webhook_id: Option<String>§health: String§health_checked_at: Option<DateTime<Utc>>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl ModuleRegistration
impl ModuleRegistration
Sourcepub fn to_manifest(&self) -> ModuleManifest
pub fn to_manifest(&self) -> ModuleManifest
Project the stored row into the uniform manifest the dashboard consumes (kind = imported, iframe-mounted, with live health).
Trait Implementations§
Source§impl Clone for ModuleRegistration
impl Clone for ModuleRegistration
Source§fn clone(&self) -> ModuleRegistration
fn clone(&self) -> ModuleRegistration
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 ModuleRegistration
impl Debug for ModuleRegistration
Source§impl From<&ModuleRegistration> for ModuleDetail
impl From<&ModuleRegistration> for ModuleDetail
Source§fn from(r: &ModuleRegistration) -> Self
fn from(r: &ModuleRegistration) -> Self
Converts to this type from the input type.
Source§impl<'a, R: Row> FromRow<'a, R> for ModuleRegistrationwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Json<Vec<NavEntry>>: Decode<'a, R::Database> + Type<R::Database>,
Json<Vec<String>>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for ModuleRegistrationwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Json<Vec<NavEntry>>: Decode<'a, R::Database> + Type<R::Database>,
Json<Vec<String>>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
Option<DateTime<Utc>>: Decode<'a, R::Database> + Type<R::Database>,
DateTime<Utc>: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for ModuleRegistration
impl RefUnwindSafe for ModuleRegistration
impl Send for ModuleRegistration
impl Sync for ModuleRegistration
impl Unpin for ModuleRegistration
impl UnsafeUnpin for ModuleRegistration
impl UnwindSafe for ModuleRegistration
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<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