Crate lib_tcstring[−][src]
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::TcModel::try_from("COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA"); // returns a Result which contains a TcModel V1 let tc_model_v1 = lib_tcstring::TcModel::try_from("BOEFEAyOEFEAyAHABDENAI4AAAB9vABAASA");
If it’s possible to know which TcModel version is used write it like this:
use std::convert::TryFrom; let tc_model_v2 = lib_tcstring::TcModelV2::try_from("COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA"); let tc_model_v1 = lib_tcstring::TcModelV1::try_from("BOEFEAyOEFEAyAHABDENAI4AAAB9vABAASA");
Structs
PublisherRestriction | Publisher restriction which overrides the specificed purpose |
TcModelV1 |
|
TcModelV2 |
|
VendorSet |
|
Enums
PublisherRestrictionType | Contains restriction types as defined in |
TcModel |
|
TcsError | Errors that can occur while decoding the TCString |