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.
Implementations§
Trait Implementations§
impl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnsafeUnpin for Kind
impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.