var searchIndex = {}; searchIndex["fcm"] = {"doc":"fcm\n===","items":[[3,"FcmResponse","fcm","",null,null],[12,"message_id","","",0,null],[12,"error","","",0,null],[12,"multicast_id","","",0,null],[12,"success","","",0,null],[12,"failure","","",0,null],[12,"canonical_ids","","",0,null],[12,"results","","",0,null],[3,"MessageResult","","",null,null],[12,"message_id","","",1,null],[12,"registration_id","","",1,null],[12,"error","","",1,null],[3,"Message","","Represents a FCM message. Construct the FCM message\nusing various utility methods and finally send it.\n# Examples:\n```rust\nuse fcm::Message;",null,null],[3,"Notification","","This struct represents a FCM notification. Use the\ncorresponding `NotificationBuilder` to get an instance. You can then use \nthis notification instance when sending a FCM message.",null,null],[3,"NotificationBuilder","","A builder to get a `Notification` instance.",null,null],[4,"FcmError","","",null,null],[13,"Unauthorized","","",2,null],[13,"InvalidMessage","","",2,null],[13,"ServerError","","",2,null],[4,"Priority","","",null,null],[13,"Normal","","",3,null],[13,"High","","",3,null],[4,"Error","","",null,null],[13,"Unauthorized","","",2,null],[13,"InvalidMessage","","",2,null],[13,"ServerError","","",2,null],[11,"fmt","","",0,null],[11,"decode","","",0,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"fmt","","",1,null],[11,"decode","","",1,{"inputs":[{"name":"__d"}],"output":{"name":"result"}}],[11,"fmt","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"clone","","",3,null],[11,"fmt","","",3,null],[11,"eq","","",3,null],[11,"to_json","","",4,null],[11,"new","","Get a new instance of Message. You need to supply either\na registration id, or a topic (/topic/...).",4,{"inputs":[{"name":"str"}],"output":{"name":"message"}}],[11,"registration_ids","","Set various registration ids to which the message ought to be sent.",4,null],[11,"collapse_key","","Set this parameter to identify groups of messages that can be collapsed.",4,null],[11,"priority","","Set the priority of the message. You can set Normal or High priorities.\n# Examples:\n```rust\nuse fcm::{Message, Priority};",4,null],[11,"content_available","","To set the `content-available` field on iOS",4,null],[11,"delay_while_idle","","When set to `true`, sends the message only when the device is active.",4,null],[11,"time_to_live","","How long (in seconds) to keep the message on FCM servers in case the device\nis offline. The maximum and default is 4 weeks.",4,null],[11,"restricted_package_name","","Package name of the application where the registration tokens must match.",4,null],[11,"dry_run","","When set to `true`, allows you to test FCM without actually sending the message.",4,null],[11,"data","","Use this to add custom key-value pairs to the message. This data\nmust be handled appropriately on the client end.\n# Examples:\n```rust\nuse fcm::Message;\nuse std::collections::HashMap;",4,null],[11,"notification","","Use this to set a `Notification` for the message.\n# Examples:\n```rust\nuse fcm::{Message, NotificationBuilder};",4,null],[11,"send","","Send the message using your FCM API Key.\n# Examples:\n```no_run\nuse fcm::Message;\nuse std::collections::HashMap;",4,null],[0,"response","","",null,null],[3,"FcmResponse","fcm::response","",null,null],[12,"message_id","","",0,null],[12,"error","","",0,null],[12,"multicast_id","","",0,null],[12,"success","","",0,null],[12,"failure","","",0,null],[12,"canonical_ids","","",0,null],[12,"results","","",0,null],[3,"MessageResult","","",null,null],[12,"message_id","","",1,null],[12,"registration_id","","",1,null],[12,"error","","",1,null],[4,"FcmError","","",null,null],[13,"Unauthorized","","",2,null],[13,"InvalidMessage","","",2,null],[13,"ServerError","","",2,null],[11,"clone","fcm","",5,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"fmt","","",5,null],[11,"to_json","","",5,null],[11,"new","","Get a new `NotificationBuilder` instance, with a title.",6,{"inputs":[{"name":"str"}],"output":{"name":"notificationbuilder"}}],[11,"body","","Set the body of the notification",6,null],[11,"icon","","Set the notification icon. Defaults to `myicon`",6,null],[11,"sound","","Set the sound to be played",6,null],[11,"badge","","Set the badge for iOS notifications",6,null],[11,"tag","","Tagging a notification allows you to replace existing notifications\nwith the same tag with this new notification",6,null],[11,"color","","The color of the icon, in #rrggbb format",6,null],[11,"click_action","","What happens when the user clicks on the notification. Refer to\nhttps://developers.google.com/cloud-messaging/http-server-ref#table2 for\ndetails.",6,null],[11,"body_loc_key","","Set the body key string for localization",6,null],[11,"body_loc_args","","String value to replace format specifiers in the body string.",6,null],[11,"title_loc_key","","Set the title key string for localization",6,null],[11,"title_loc_args","","String value to replace format specifiers in the title string.",6,null],[11,"finalize","","Complete the build and get a `Notification` instance",6,null]],"paths":[[3,"FcmResponse"],[3,"MessageResult"],[4,"FcmError"],[4,"Priority"],[3,"Message"],[3,"Notification"],[3,"NotificationBuilder"]]}; initSearch(searchIndex);