From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 52C756CBE1 for ; Fri, 24 Sep 2021 11:04:39 +0200 (CEST) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 50B612FEF1 for ; Fri, 24 Sep 2021 11:04:39 +0200 (CEST) Received: from proxmox-new.maurer-it.com (proxmox-new.maurer-it.com [94.136.29.106]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS id D7EAA2FEE6 for ; Fri, 24 Sep 2021 11:04:38 +0200 (CEST) Received: from proxmox-new.maurer-it.com (localhost.localdomain [127.0.0.1]) by proxmox-new.maurer-it.com (Proxmox) with ESMTP id ACB7F44A83 for ; Fri, 24 Sep 2021 11:04:38 +0200 (CEST) Date: Fri, 24 Sep 2021 11:03:34 +0200 (CEST) From: Dietmar Maurer To: Proxmox Backup Server development discussion , =?UTF-8?Q?Fabian_Gr=C3=BCnbichler?= Message-ID: <1359850202.598.1632474214118@webmail.proxmox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.5-Rev24 X-Originating-Client: open-xchange-appsuite X-SPAM-LEVEL: Spam detection results: 0 AWL 0.576 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_PASS -0.001 SPF: sender matches SPF record Subject: Re: [pbs-devel] [PATCH proxmox-backup 1/6] src/server/worker_task.rs: Avoid using pbs-api-type::Authid X-BeenThere: pbs-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox Backup Server development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2021 09:04:39 -0000 > On 09/23/2021 3:20 PM Fabian Gr=C3=BCnbichler wrote: >=20 > =20 > On September 23, 2021 12:13 pm, Dietmar Maurer wrote: > > Because we want to move worker_task.rs into proxmox-rest-server crate. >=20 > as discussed off-list, we could use a=20 >=20 > struct AuthidStr(String) >=20 > or a trait defined in proxmox instead of a regular String, to avoid=20 > accidentally passing in other, non authid strings. all Authid=20 > implementations would then need to implement Into (/the=20 > trait), and the calls below to to_string() would become into() (remain=20 > as they were). >=20 > can also be done as follow-up with a proxmox bump if we want to discuss= =20 > it more in-depth but still go ahead with the split/move now. I am still not sure whats the best way to implement this, so I committed what we have so far...