Struct google_fcm1::api::ProjectMethods
source · pub struct ProjectMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on project resources.
It is not used directly, but through the FirebaseCloudMessaging
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_fcm1 as fcm1;
use std::default::Default;
use fcm1::{FirebaseCloudMessaging, oauth2, hyper, hyper_rustls, chrono, FieldMask};
let secret: oauth2::ApplicationSecret = Default::default();
let auth = oauth2::InstalledFlowAuthenticator::builder(
secret,
oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let mut hub = FirebaseCloudMessaging::new(hyper::Client::builder().build(hyper_rustls::HttpsConnectorBuilder::new().with_native_roots().https_or_http().enable_http1().build()), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `messages_send(...)`
// to build up your call.
let rb = hub.projects();
Implementations§
source§impl<'a, S> ProjectMethods<'a, S>
impl<'a, S> ProjectMethods<'a, S>
sourcepub fn messages_send(
&self,
request: SendMessageRequest,
parent: &str
) -> ProjectMessageSendCall<'a, S>
pub fn messages_send( &self, request: SendMessageRequest, parent: &str ) -> ProjectMessageSendCall<'a, S>
Create a builder to help you perform the following task:
Send a message to specified target (a registration token, topic or condition).
§Arguments
request
- No description provided.parent
- Required. It contains the Firebase project id (i.e. the unique identifier for your Firebase project), in the format ofprojects/{project_id}
. For legacy support, the numeric project number with no padding is also supported in the format ofprojects/{project_number}
.
Trait Implementations§
impl<'a, S> MethodsBuilder for ProjectMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for ProjectMethods<'a, S>
impl<'a, S> Send for ProjectMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for ProjectMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for ProjectMethods<'a, S>
impl<'a, S> !UnwindSafe for ProjectMethods<'a, S>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more