Constant tsproto_structs::messages_to_book::DATA_STR[][src]

pub const DATA_STR: &str = "# All properties which have an identical \'High-Level\' name are copied implicitly\n\n[[rule]]\nfrom = \"ChannelCreated\"\nid = [\"ChannelId\"]\nto = \"Channel\"\n# add/update/remove\noperation = \"add\"\nproperties = [\n\t{ from=\"ParentId\", to=\"Parent\" },\n\t{ function=\"ChannelTypeCcFun\", tolist=[\"ChannelType\"] },\n\t{ function=\"ChannelOrderCcFun\", tolist=[\"Order\"] },\n\t{ function=\"MaxClientsCcFun\", tolist=[\"MaxClients\", \"MaxFamilyClients\"] },\n\t# Default codec is opus voice\n\t{ function=\"ChannelCodecCcFun\", tolist=[\"Codec\"] },\n\t{ function=\"ReturnFalse\", tolist=[\"ForcedSilence\"] },\n\t{ function=\"ReturnFalse\", tolist=[\"Subscribed\"] },\n\t{ function=\"ReturnNone\", tolist=[\"IsPrivate\"] },\n\t{ function=\"ReturnNone\", tolist=[\"Guid\"] },\n\t{ function=\"ReturnNone\", tolist=[\"OptionalData\"] },\n\t{ function=\"ReturnNone\", tolist=[\"PermissionHints\"] },\n]\n\n[[rule]]\nfrom = \"ChannelDeleted\"\nid = [\"ChannelId\"]\nto = \"Channel\"\noperation = \"remove\"\n\n[[rule]]\nfrom = \"ChannelEdited\"\nid = [\"ChannelId\"]\nto = \"Channel\"\noperation = \"update\"\nproperties = [\n\t{ function=\"MaxClientsCeFun\", tolist=[\"MaxClients\", \"MaxFamilyClients\"] },\n\t{ function=\"ChannelTypeCeFun\", tolist=[\"ChannelType\"] },\n\t{ function=\"ChannelOrderCeFun\", tolist=[\"Order\"] },\n]\n\n[[rule]]\nfrom = \"ChannelEdited\"\nid = [\"ChannelId\"]\nto = \"OptionalChannelData\"\noperation = \"update\"\nproperties = [\n]\n\n[[rule]]\nfrom = \"ChannelEditedLow\"\nid = [\"ChannelId\"]\nto = \"OptionalChannelData\"\noperation = \"update\"\nproperties = [\n]\n\n[[rule]]\nfrom = \"ChannelDescriptionChanged\"\nid = [\"ChannelId\"]\nto = \"OptionalChannelData\"\noperation = \"remove\"\n\n[[rule]]\nfrom = \"ChannelGroupList\"\nid = [\"ChannelGroup\"]\nto = \"ChannelGroup\"\noperation = \"add\"\n\n[[rule]]\nfrom = \"ChannelList\"\nid = [\"ChannelId\"]\nto = \"Channel\"\noperation = \"add\"\nproperties = [\n\t{ from=\"ParentId\", to=\"Parent\" },\n\t{ function=\"MaxClientsClFun\", tolist=[\"MaxClients\", \"MaxFamilyClients\"] },\n\t{ function=\"ChannelTypeClFun\", tolist=[\"ChannelType\"] },\n\t{ function=\"ReturnFalse\", tolist=[\"Subscribed\"] },\n\t{ function=\"ReturnNone\", tolist=[\"PermissionHints\"] },\n\t{ function=\"ReturnNone\", tolist=[\"OptionalData\"] },\n]\n\n[[rule]]\nfrom = \"ChannelMoved\"\nid = [\"ChannelId\"]\nto = \"Channel\"\noperation = \"update\"\nproperties = [\n\t{ from=\"ParentId\", to=\"Parent\" },\n\t{ function=\"ChannelOrderCmFun\", tolist=[\"Order\"] },\n]\n\n[[rule]]\nfrom = \"ChannelPermissionHints\"\nid = [\"ChannelId\"]\nto = \"Channel\"\noperation = \"update\"\nproperties = [\n\t{ from=\"Flags\", to=\"PermissionHints\" },\n]\n\n[[rule]]\nfrom = \"ChannelSubscribed\"\nid = [\"ChannelId\"]\nto = \"Channel\"\noperation = \"update\"\nproperties = [\n\t{ function=\"ChannelSubscribeFun\", tolist=[\"Subscribed\"] },\n]\n\n[[rule]]\nfrom = \"ChannelUnsubscribed\"\nid = [\"ChannelId\"]\nto = \"Channel\"\noperation = \"update\"\nproperties = [\n\t{ function=\"ChannelUnsubscribeFun\", tolist=[\"Subscribed\"] },\n]\n\n[[rule]]\nfrom = \"ClientChannelGroupChanged\"\nid = [\"ClientId\"]\nto = \"Client\"\noperation = \"update\"\n\n[[rule]]\nfrom = \"ClientEnterView\"\nid = [\"ClientId\"]\nto = \"Client\"\noperation = \"add\"\nproperties = [\n\t{ from=\"TargetChannelId\", to=\"Channel\" },\n\t{ function=\"AwayCevFun\", tolist=[\"AwayMessage\"] },\n\t{ function=\"ClientTypeCevFun\", tolist=[\"ClientType\"] },\n\t{ function=\"TalkPowerCevFun\", tolist=[\"TalkPowerRequest\"] },\n\t{ function=\"ReturnNone\", tolist=[\"PermissionHints\"] },\n\t{ function=\"ReturnNone\", tolist=[\"OptionalData\"] },\n\t{ function=\"ReturnNone\", tolist=[\"ConnectionData\"] },\n]\n\n[[rule]]\nfrom = \"ClientLeftView\"\nid = [\"ClientId\"]\nto = \"Client\"\noperation = \"remove\"\n\n[[rule]]\nfrom = \"ClientMoved\"\nid = [\"ClientId\"]\nto = \"Client\"\noperation = \"update\"\nproperties = [\n\t{ from=\"TargetChannelId\", to=\"Channel\" },\n\t# Set channel subscribed when the current client is moved\n\t{ function=\"SubscribeChannelFun\", tolist=[] },\n]\n\n[[rule]]\nfrom = \"ClientConnectionInfo\"\nid = [\"ClientId\"]\nto = \"ConnectionClientData\"\noperation = \"update\"\nproperties = [\n\t{ function=\"AddressFun\", tolist=[\"ClientAddress\"] },\n]\n\n[[rule]]\nfrom = \"ClientServerGroupAdded\"\nid = [\"ClientId\"]\nto = \"Client\"\noperation = \"update\"\nproperties = [\n\t{ from=\"ServerGroupId\", to=\"ServerGroups\", operation=\"add\" },\n\t# We explicitely throw away the server group name.\n\t# Otherwise it would overwrite our client name because of automated\n\t# matching.\n\t{ function=\"VoidFun\", tolist=[\"Name\"] },\n]\n\n[[rule]]\nfrom = \"ClientServerGroupRemoved\"\nid = [\"ClientId\"]\nto = \"Client\"\noperation = \"update\"\nproperties = [\n\t{ from=\"ServerGroupId\", to=\"ServerGroups\", operation=\"remove\" },\n\t{ function=\"VoidFun\", tolist=[\"Name\"] },\n]\n\n[[rule]]\nfrom = \"ClientUpdated\"\nid = [\"ClientId\"]\nto = \"Client\"\noperation = \"update\"\nproperties = [\n\t{ function=\"AwayCuFun\", tolist=[\"AwayMessage\"] },\n\t{ function=\"TalkPowerCuFun\", tolist=[\"TalkPowerRequest\"] },\n]\n\n[[rule]]\nfrom = \"ClientUpdated\"\nid = [\"ClientId\"]\nto = \"OptionalClientData\"\noperation = \"update\"\nproperties = [\n\t{ function=\"ReturnSomeNone\", tolist=[\"VersionSign\"] },\n]\n\n[[rule]]\nfrom = \"ClientPermissionHints\"\nid = [\"ClientId\"]\nto = \"Client\"\noperation = \"update\"\nproperties = [\n\t{ from=\"Flags\", to=\"PermissionHints\" },\n]\n\n[[rule]]\nfrom = \"InitServer\"\nid = []\nto = \"Server\"\noperation = \"add\"\nproperties = [\n\t{ from=\"VirtualServerId\", to=\"Id\" },\n\t# `Uid` is generated from public key\n\t# ClientName, ClientId, TalkPower, NeededServerqueryViewPower\n\t{ function=\"SetClientDataFun\", tolist=[] },\n]\n\n[[rule]]\nfrom = \"ServerEdited\"\nid = []\nto = \"Server\"\noperation = \"update\"\n\n[[rule]]\nfrom = \"ServerEdited\"\nid = []\nto = \"OptionalServerData\"\noperation = \"remove\"\n\n[[rule]]\nfrom = \"ServerUpdated\"\nid = []\nto = \"Server\"\noperation = \"update\"\n\n[[rule]]\nfrom = \"ServerGroupList\"\nid = [\"ServerGroupId\"]\nto = \"ServerGroup\"\noperation = \"add\"\n\n[[rule]]\nfrom = \"ServerConnectionInfo\"\nid = []\nto = \"ConnectionServerData\"\noperation = \"update\"\nproperties = [\n]\n\n[[rule]]\nfrom = \"ServerUpdated\"\nid = []\nto = \"OptionalServerData\"\noperation = \"update\"\nproperties = [\n]\n";