pub struct ApiServerFeatureLimits {
pub allocations: i32,
pub databases: i32,
pub backups: i32,
pub schedules: i32,
pub __overlay: ExtensionOverlay<ApiServerFeatureLimits>,
}Fields§
§allocations: i32§databases: i32§backups: i32§schedules: i32§__overlay: ExtensionOverlay<ApiServerFeatureLimits>Implementations§
Source§impl ApiServerFeatureLimits
impl ApiServerFeatureLimits
pub fn extend<__Res: Send + 'static, __E: PartialSchema + Serialize + 'static>( resolver: impl for<'__ia> Fn(&'__ia Server, &'__ia Database) -> Pin<Box<dyn Future<Output = Result<__Res, Error>> + Send + '__ia>> + Send + Sync + 'static, transform: impl for<'__ha> Fn(&mut ApiServerFeatureLimits, __Res, &'__ha Database) -> __E + Send + Sync + 'static, )
pub fn extend_validated<__Res: Send + 'static, __E: PartialSchema + Serialize + DeserializeOwned + Validate<Context = ()> + 'static>( resolver: impl for<'__ia> Fn(&'__ia Server, &'__ia Database) -> Pin<Box<dyn Future<Output = Result<__Res, Error>> + Send + '__ia>> + Send + Sync + 'static, transform: impl for<'__ha> Fn(&mut ApiServerFeatureLimits, __Res, &'__ha Database) -> __E + Send + Sync + 'static, )
pub async fn init_hooks( __ia_0: &Server, __ia_1: &Database, ) -> Result<Vec<Box<dyn for<'__ha> FnOnce(&mut ApiServerFeatureLimits, &'__ha Database) -> Result<(), Error> + Send>>, Error>
pub fn finish_hooks( instance: &mut Self, ready: Vec<Box<dyn for<'__ha> FnOnce(&mut ApiServerFeatureLimits, &'__ha Database) -> Result<(), Error> + Send>>, __ha_0: &Database, ) -> Result<(), Error>
Trait Implementations§
Source§impl Clone for ApiServerFeatureLimits
impl Clone for ApiServerFeatureLimits
Source§fn clone(&self) -> ApiServerFeatureLimits
fn clone(&self) -> ApiServerFeatureLimits
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ApiServerFeatureLimits
impl<'de> Deserialize<'de> for ApiServerFeatureLimits
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
Source§impl Extendible for ApiServerFeatureLimits
impl Extendible for ApiServerFeatureLimits
fn schema_mut() -> &'static LazyLock<RwLock<Object>>
fn validators() -> &'static RwLock<Vec<ExtensionValidatorFn>>
fn overlay_map_mut(&mut self) -> &mut Map<String, Value>
fn overlay_map(&self) -> &Map<String, Value>
fn merged_schema() -> RefOr<Schema>
fn get_extended<E>(&self) -> Result<E, Error>where
E: DeserializeOwned,
Source§impl PartialSchema for ApiServerFeatureLimits
impl PartialSchema for ApiServerFeatureLimits
Source§impl Serialize for ApiServerFeatureLimits
impl Serialize for ApiServerFeatureLimits
Source§impl ToSchema for ApiServerFeatureLimits
impl ToSchema for ApiServerFeatureLimits
Source§impl Validate for ApiServerFeatureLimits
impl Validate for ApiServerFeatureLimits
Source§fn validate_into(
&self,
__garde_user_ctx: &Self::Context,
__garde_path: &mut dyn FnMut() -> Path,
__garde_report: &mut Report,
)
fn validate_into( &self, __garde_user_ctx: &Self::Context, __garde_path: &mut dyn FnMut() -> Path, __garde_report: &mut Report, )
Validates
Self, aggregating all validation errors into Report.§fn validate(&self) -> Result<(), Report>where
Self::Context: Default,
fn validate(&self) -> Result<(), Report>where
Self::Context: Default,
Validates
Self, returning an Err with an aggregate of all errors if
the validation failed. Read more§fn validate_with(&self, ctx: &Self::Context) -> Result<(), Report>
fn validate_with(&self, ctx: &Self::Context) -> Result<(), Report>
Validates
Self, returning an Err with an aggregate of all errors if
the validation failed. Read moreAuto Trait Implementations§
impl Freeze for ApiServerFeatureLimits
impl RefUnwindSafe for ApiServerFeatureLimits
impl Send for ApiServerFeatureLimits
impl Sync for ApiServerFeatureLimits
impl Unpin for ApiServerFeatureLimits
impl UnwindSafe for ApiServerFeatureLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Chain<T> for T
impl<T> Chain<T> for T
§impl<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
§impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
impl<T> FromBase64 for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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