pub struct DatabaseRoutes<S> {Show 14 fields
pub root_post: MethodRouter<S>,
pub db_put: MethodRouter<S>,
pub db_get: MethodRouter<S>,
pub db_delete: MethodRouter<S>,
pub names_get: MethodRouter<S>,
pub names_post: MethodRouter<S>,
pub names_put: MethodRouter<S>,
pub identity_get: MethodRouter<S>,
pub subscribe_get: MethodRouter<S>,
pub call_reducer_post: MethodRouter<S>,
pub schema_get: MethodRouter<S>,
pub logs_get: MethodRouter<S>,
pub sql_post: MethodRouter<S>,
pub timestamp_get: MethodRouter<S>,
}Expand description
This struct allows the edition to customize /database routes more meticulously.
Fields§
§root_post: MethodRouter<S>POST /database
db_put: MethodRouter<S>PUT: /database/:name_or_identity
db_get: MethodRouter<S>GET: /database/:name_or_identity
db_delete: MethodRouter<S>DELETE: /database/:name_or_identity
names_get: MethodRouter<S>GET: /database/:name_or_identity/names
names_post: MethodRouter<S>POST: /database/:name_or_identity/names
names_put: MethodRouter<S>PUT: /database/:name_or_identity/names
identity_get: MethodRouter<S>GET: /database/:name_or_identity/identity
subscribe_get: MethodRouter<S>GET: /database/:name_or_identity/subscribe
call_reducer_post: MethodRouter<S>POST: /database/:name_or_identity/call/:reducer
schema_get: MethodRouter<S>GET: /database/:name_or_identity/schema
logs_get: MethodRouter<S>GET: /database/:name_or_identity/logs
sql_post: MethodRouter<S>POST: /database/:name_or_identity/sql
timestamp_get: MethodRouter<S>GET: /database/: name_or_identity/unstable/timestamp
Implementations§
Source§impl<S> DatabaseRoutes<S>
impl<S> DatabaseRoutes<S>
pub fn into_router(self, ctx: S) -> Router<S>
Trait Implementations§
Source§impl<S> Default for DatabaseRoutes<S>
impl<S> Default for DatabaseRoutes<S>
Auto Trait Implementations§
impl<S> !Freeze for DatabaseRoutes<S>
impl<S> RefUnwindSafe for DatabaseRoutes<S>
impl<S> Send for DatabaseRoutes<S>
impl<S> Sync for DatabaseRoutes<S>
impl<S> Unpin for DatabaseRoutes<S>
impl<S> UnwindSafe for DatabaseRoutes<S>
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> 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