pub trait StructAttributeFieldCount<const FIELD_COUNT: usize>: StructMeta { }Expand description
A trait implemented for all structs with a count of fields.
NOTE: A generic parameter is used here which allows for optional further trait implementations.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationCleartextPassword<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationGSS<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationGSSContinue<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationKerberosV5<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationMD5Password<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationMessage<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationOk<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationSASL<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationSASLContinue<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationSASLFinal<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationSCMCredential<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for AuthenticationSSPI<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for BackendKeyData<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Bind<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for BindComplete<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for CancelRequest<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Close<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for CloseComplete<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for CommandComplete<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for CopyBothResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for CopyData<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for CopyDone<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for CopyFail<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for CopyInResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for CopyOutResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for DataRow<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Describe<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for EmptyQueryResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for ErrorField<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for ErrorResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Execute<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Flush<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for FunctionCall<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for FunctionCallResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for GSSENCRequest<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for GSSResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for InitialMessage<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Message<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for NegotiateProtocolVersion<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for NoData<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for NoticeField<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for NoticeResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for NotificationResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for ParameterDescription<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for ParameterStatus<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Parse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for ParseComplete<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for PasswordMessage<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for PortalSuspended<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Query<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for ReadyForQuery<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for RowDescription<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for RowField<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for SASLInitialResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for SASLResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for SSLRequest<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for SSLResponse<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for StartupMessage<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for StartupNameValue<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Sync<'_>
Implements a trait indicating that the struct has a field count.
impl StructAttributeFieldCount<{<$name<'_> as $crate::prelude::StructMeta>::FIELD_COUNT}> for Terminate<'_>
Implements a trait indicating that the struct has a field count.