Crate lib_tcstring
source ·Expand description
§TCF String library which (currently only) decodes a given TCString
NOTE: This is not an official IAB library
General usage
ⓘ
use std::convert::TryFrom;
// returns a Result which contains a TcModel V2
let tc_model_v2 = lib_tcstring::TcModelV2::try_from("COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA");
Structs§
- Publisher restriction which overrides the specified purpose
TcModelV2
contains all relevant fields specified in theVendor Consent String Format V2
except for theVersion
field which is omitted
Enums§
- Contains restriction types as defined in
Vendor Consent String Format V2 Core String
- Errors that can occur while decoding the TCString