pub struct ServerSubsystems {
pub storage: Option<StorageSubsystem>,
pub functions: Option<FunctionsSubsystem>,
pub realtime: Option<RealtimeSubsystem>,
}Expand description
All optional platform subsystems assembled from the compiled schema.
Each field is None when the corresponding section is absent from or disabled
in the compiled schema. Callers can use is_storage_enabled
etc. to check at a glance, or match directly on the Option fields.
Fields§
§storage: Option<StorageSubsystem>Object storage subsystem, present when the schema’s "storage" key is set.
functions: Option<FunctionsSubsystem>Serverless functions subsystem, present when the schema’s "functions" key is set.
realtime: Option<RealtimeSubsystem>Realtime broadcast subsystem, present when the schema’s "realtime" key is set
and enabled is true.
Implementations§
Source§impl ServerSubsystems
impl ServerSubsystems
Sourcepub const fn none() -> Self
pub const fn none() -> Self
Create an empty ServerSubsystems with all subsystems disabled.
Equivalent to ServerSubsystemsBuilder::new().build().unwrap().
Sourcepub const fn is_storage_enabled(&self) -> bool
pub const fn is_storage_enabled(&self) -> bool
Returns true if the storage subsystem is present.
Sourcepub const fn is_functions_enabled(&self) -> bool
pub const fn is_functions_enabled(&self) -> bool
Returns true if the functions subsystem is present.
Sourcepub const fn is_realtime_enabled(&self) -> bool
pub const fn is_realtime_enabled(&self) -> bool
Returns true if the realtime subsystem is present.
Auto Trait Implementations§
impl !Freeze for ServerSubsystems
impl !RefUnwindSafe for ServerSubsystems
impl !UnwindSafe for ServerSubsystems
impl Send for ServerSubsystems
impl Sync for ServerSubsystems
impl Unpin for ServerSubsystems
impl UnsafeUnpin for ServerSubsystems
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
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>
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>
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