pub struct Container {
pub name: String,
pub level: u8,
pub members: Vec<Member>,
pub docs: Option<String>,
pub is_enum: bool,
pub supports_derive_default: OnceCell<bool>,
}Expand description
Output container found by analyzer
Fields§
§name: StringThe short name of the struct (kind + capitalized suffix)
level: u8The nestedness level the container was found in
members: Vec<Member>Members or enum members of the container
docs: Option<String>Documentation properties extracted for the container
is_enum: boolWhether this container is an enum
supports_derive_default: OnceCell<bool>Implementations§
Source§impl Container
impl Container
pub fn uses_btreemaps(&self) -> bool
pub fn uses_hashmaps(&self) -> bool
pub fn uses_datetime(&self) -> bool
pub fn uses_date(&self) -> bool
pub fn uses_int_or_string(&self) -> bool
pub fn is_root(&self) -> bool
pub fn is_main_container(&self) -> bool
pub fn is_status_container(&self) -> bool
pub fn contains_conditions(&self) -> bool
pub fn contains_object_ref(&self) -> bool
Sourcepub fn can_derive_default(&self, containers: &[Container]) -> bool
pub fn can_derive_default(&self, containers: &[Container]) -> bool
Checks if default is implemented for all props, and if not, returns false
Behavior for –smart-derive-elision.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Container
impl !RefUnwindSafe for Container
impl !Sync for Container
impl Send for Container
impl Unpin for Container
impl UnsafeUnpin for Container
impl UnwindSafe for Container
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 moreimpl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ServiceExt for T
impl<T> ServiceExt for T
Source§fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
fn map_response_body<F>(self, f: F) -> MapResponseBody<Self, F>where
Self: Sized,
Apply a transformation to the response body. Read more
Source§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
Source§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more