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 the Vendor Consent String Format V2
except for the Version
field which is omittedEnums
Contains restriction types as defined in
Vendor Consent String Format V2 Core String
Errors that can occur while decoding the TCString