OxL Справочник OxL
РусскийEnglish

fn sealStr

seal for a str field; the generated code of an @encrypted field calls it. A failure is a panic.

Example:

oxl✓ проверяется в CI
use std.topic { sealStr, openStr }

fn main() io, db {
  let b = sealStr("Payments", "card", "4111")
  print(openStr("Payments", "card", b))
}
Вывод
4111
pub(api) fn sealStr(name: str, field: str, v: str) -> bytes

С версии. 1.0.0-beta

Параметры

ИмяТип
namestr
fieldstr
vstr

Возвращает

bytes

Эффекты

не объявлены (чистая, пока тело не говорит иное)

Определено в: std/topic/topic.oxl:783

См. также