pub struct WebvhServerRecord {
pub id: String,
pub did: String,
pub label: Option<String>,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Operator-visible metadata for a registered webvh hosting server.
Public surface — never carry secret material. Bearer tokens,
refresh tokens, and token-expiry timestamps for the daemon REST
auth flow live in a separate service-internal record
(vta_service::webvh_store::WebvhServerAuthRecord, keyspace prefix
server-auth:), not on this type. The split keeps tokens out of:
- REST
GET /webvh/serverslist responses, - DIDComm
webvh.servers.listresults, - Backup export payloads,
- Any future SDK consumer that reads
WebvhServerRecord.
Legacy records on disk may still carry access_token /
access_expires_at / refresh_token fields embedded inline.
Serde’s default behaviour ignores unknown fields, so those
legacy records deserialize cleanly into the new shape — the
embedded tokens are silently dropped on read. The VTA’s restore
path explicitly wipes the server-auth: keyspace so a backup
from another VTA can’t replay stale tokens here.
Fields§
§id: String§did: String§label: Option<String>§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Trait Implementations§
Source§impl Clone for WebvhServerRecord
impl Clone for WebvhServerRecord
Source§fn clone(&self) -> WebvhServerRecord
fn clone(&self) -> WebvhServerRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more