fn write_partial_profile_fields( name: Option<&str>, id: Option<Uuid>, properties: &[ProfileProperty], writer: &mut impl Write, ) -> Result<()>