Struct google_drive2::api::ReplyMethods
source · pub struct ReplyMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on reply resources.
It is not used directly, but through the DriveHub
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_drive2 as drive2;
use std::default::Default;
use drive2::{DriveHub, 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 = DriveHub::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 `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)`
// to build up your call.
let rb = hub.replies();
Implementations§
source§impl<'a, S> ReplyMethods<'a, S>
impl<'a, S> ReplyMethods<'a, S>
sourcepub fn delete(
&self,
file_id: &str,
comment_id: &str,
reply_id: &str
) -> ReplyDeleteCall<'a, S>
pub fn delete( &self, file_id: &str, comment_id: &str, reply_id: &str ) -> ReplyDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a reply.
§Arguments
fileId
- The ID of the file.commentId
- The ID of the comment.replyId
- The ID of the reply.
sourcepub fn get(
&self,
file_id: &str,
comment_id: &str,
reply_id: &str
) -> ReplyGetCall<'a, S>
pub fn get( &self, file_id: &str, comment_id: &str, reply_id: &str ) -> ReplyGetCall<'a, S>
Create a builder to help you perform the following task:
Gets a reply.
§Arguments
fileId
- The ID of the file.commentId
- The ID of the comment.replyId
- The ID of the reply.
sourcepub fn insert(
&self,
request: CommentReply,
file_id: &str,
comment_id: &str
) -> ReplyInsertCall<'a, S>
pub fn insert( &self, request: CommentReply, file_id: &str, comment_id: &str ) -> ReplyInsertCall<'a, S>
Create a builder to help you perform the following task:
Creates a new reply to the given comment.
§Arguments
request
- No description provided.fileId
- The ID of the file.commentId
- The ID of the comment.
sourcepub fn list(&self, file_id: &str, comment_id: &str) -> ReplyListCall<'a, S>
pub fn list(&self, file_id: &str, comment_id: &str) -> ReplyListCall<'a, S>
Create a builder to help you perform the following task:
Lists all of the replies to a comment.
§Arguments
fileId
- The ID of the file.commentId
- The ID of the comment.
sourcepub fn patch(
&self,
request: CommentReply,
file_id: &str,
comment_id: &str,
reply_id: &str
) -> ReplyPatchCall<'a, S>
pub fn patch( &self, request: CommentReply, file_id: &str, comment_id: &str, reply_id: &str ) -> ReplyPatchCall<'a, S>
Create a builder to help you perform the following task:
Updates an existing reply.
§Arguments
request
- No description provided.fileId
- The ID of the file.commentId
- The ID of the comment.replyId
- The ID of the reply.
sourcepub fn update(
&self,
request: CommentReply,
file_id: &str,
comment_id: &str,
reply_id: &str
) -> ReplyUpdateCall<'a, S>
pub fn update( &self, request: CommentReply, file_id: &str, comment_id: &str, reply_id: &str ) -> ReplyUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates an existing reply.
§Arguments
request
- No description provided.fileId
- The ID of the file.commentId
- The ID of the comment.replyId
- The ID of the reply.
Trait Implementations§
impl<'a, S> MethodsBuilder for ReplyMethods<'a, S>
Auto Trait Implementations§
impl<'a, S> !RefUnwindSafe for ReplyMethods<'a, S>
impl<'a, S> Send for ReplyMethods<'a, S>where
S: Sync,
impl<'a, S> Sync for ReplyMethods<'a, S>where
S: Sync,
impl<'a, S> Unpin for ReplyMethods<'a, S>
impl<'a, S> !UnwindSafe for ReplyMethods<'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