pub trait StructAttributeHasLengthField<const HAS_LENGTH_FIELD: bool>: StructMeta { }
Expand description
A trait implemented for all structs with a boolean determining whether they have a length field.
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 StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Annotation<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Authentication<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for AuthenticationOk<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for AuthenticationRequiredSASLMessage<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for AuthenticationSASLContinue<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for AuthenticationSASLFinal<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for AuthenticationSASLInitialResponse<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for AuthenticationSASLResponse<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for ClientHandshake<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for CommandComplete<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for CommandDataDescription<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for ConnectionParam<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Data<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for DataElement<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Dump2<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Dump3<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Dump<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for DumpBlock<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for DumpHeader<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for DumpObjectDesc<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for DumpTypeInfo<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for ErrorResponse<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Execute2<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Execute<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for KeyValue<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for LogMessage<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Message<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for ParameterStatus<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Parse2<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Parse<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for ProtocolExtension<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for ReadyForCommand<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Restore<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for RestoreBlock<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for RestoreEof<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for RestoreReady<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for ServerHandshake<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for ServerKeyData<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for StateDataDescription<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Sync<'_>
Implements a trait indicating that the struct has a length field.
impl StructAttributeHasLengthField<{<$name<'_> as $crate::prelude::StructMeta>::HAS_LENGTH_FIELD}> for Terminate<'_>
Implements a trait indicating that the struct has a length field.