msldap-ext 0.1.0-dev

Encoder/decoder for MS-ADTS LDAP extension controls (Paged Results, ExtendedDN, SDFlags, ShowDeleted, DirSync, VLV). Pure BER — no transport.
Documentation
//! ShowDeleted control — 1.2.840.113556.1.4.417 (MS-ADTS §3.1.1.3.4.1.1).
//!
//! Flag control: presence toggles the behaviour (include tombstones in the
//! search). The Control's value field is ABSENT on the wire — callers set
//! `controlValue` to NULL when wiring into an LDAP Control SEQUENCE.

pub const OID: &str = "1.2.840.113556.1.4.417";

/// Zero-sized marker. `encode()` returns an empty slice so callers can uniformly
/// hand a byte-vec to their LDAP wrapper; the LDAP layer should serialize this
/// control with the OPTIONAL controlValue omitted.
#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
pub struct ShowDeleted;

impl ShowDeleted {
    pub fn encode(&self) -> Vec<u8> {
        Vec::new()
    }
}