pub enum Kind {
Link,
SignedLink,
Connection,
Custom,
Other,
}Expand description
What a composite template is, which decides its encoding and whether an
Open action is offered. Open past the four presets, the same
open-vocabulary reasoning as primary_role.
Variants§
Link
http(s):// only; Open behind a confirmation; zone-aware encoding.
SignedLink
A presigned/SAS URL — same zone encoding as Link. Whether editing
outside the signature part is refused is a form-level rule (C10), not
a rendering one, so it is not enforced here.
Connection
A connection string (postgres://user:pass@host/db) — same zone
encoding; userinfo encoding is what stops a @/: in a password from
moving the host.
Custom
Not a URL. No encoding, no zone classification.
Other
An unrecognised kind string. Treated as Custom — the safe default,
since assuming URL structure over an unknown shape as easily
corrupts a rendered value as it protects one.