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§

PublisherRestriction
Publisher restriction which overrides the specified purpose
TcModelV2
TcModelV2 contains all relevant fields specified in the Vendor Consent String Format V2 except for the Version field which is omitted

Enums§

PublisherRestrictionType
Contains restriction types as defined in Vendor Consent String Format V2 Core String
TcsError
Errors that can occur while decoding the TCString