Struct google_mirror1::api::TimelineMethods
source · pub struct TimelineMethods<'a, S>where
S: 'a,{ /* private fields */ }
Expand description
A builder providing access to all methods supported on timeline resources.
It is not used directly, but through the Mirror
hub.
§Example
Instantiate a resource builder
extern crate hyper;
extern crate hyper_rustls;
extern crate google_mirror1 as mirror1;
use std::default::Default;
use mirror1::{Mirror, 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 = Mirror::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 `attachments_delete(...)`, `attachments_get(...)`, `attachments_insert(...)`, `attachments_list(...)`, `delete(...)`, `get(...)`, `insert(...)`, `list(...)`, `patch(...)` and `update(...)`
// to build up your call.
let rb = hub.timeline();
Implementations§
source§impl<'a, S> TimelineMethods<'a, S>
impl<'a, S> TimelineMethods<'a, S>
sourcepub fn attachments_delete(
&self,
item_id: &str,
attachment_id: &str
) -> TimelineAttachmentDeleteCall<'a, S>
pub fn attachments_delete( &self, item_id: &str, attachment_id: &str ) -> TimelineAttachmentDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes an attachment from a timeline item.
§Arguments
itemId
- The ID of the timeline item the attachment belongs to.attachmentId
- The ID of the attachment.
sourcepub fn attachments_get(
&self,
item_id: &str,
attachment_id: &str
) -> TimelineAttachmentGetCall<'a, S>
pub fn attachments_get( &self, item_id: &str, attachment_id: &str ) -> TimelineAttachmentGetCall<'a, S>
Create a builder to help you perform the following task:
Retrieves an attachment on a timeline item by item ID and attachment ID.
§Arguments
itemId
- The ID of the timeline item the attachment belongs to.attachmentId
- The ID of the attachment.
sourcepub fn attachments_insert(
&self,
item_id: &str
) -> TimelineAttachmentInsertCall<'a, S>
pub fn attachments_insert( &self, item_id: &str ) -> TimelineAttachmentInsertCall<'a, S>
Create a builder to help you perform the following task:
Adds a new attachment to a timeline item.
§Arguments
itemId
- The ID of the timeline item the attachment belongs to.
sourcepub fn attachments_list(
&self,
item_id: &str
) -> TimelineAttachmentListCall<'a, S>
pub fn attachments_list( &self, item_id: &str ) -> TimelineAttachmentListCall<'a, S>
Create a builder to help you perform the following task:
Returns a list of attachments for a timeline item.
§Arguments
itemId
- The ID of the timeline item whose attachments should be listed.
sourcepub fn delete(&self, id: &str) -> TimelineDeleteCall<'a, S>
pub fn delete(&self, id: &str) -> TimelineDeleteCall<'a, S>
Create a builder to help you perform the following task:
Deletes a timeline item.
§Arguments
id
- The ID of the timeline item.
sourcepub fn get(&self, id: &str) -> TimelineGetCall<'a, S>
pub fn get(&self, id: &str) -> TimelineGetCall<'a, S>
Create a builder to help you perform the following task:
Gets a single timeline item by ID.
§Arguments
id
- The ID of the timeline item.
sourcepub fn insert(&self, request: TimelineItem) -> TimelineInsertCall<'a, S>
pub fn insert(&self, request: TimelineItem) -> TimelineInsertCall<'a, S>
Create a builder to help you perform the following task:
Inserts a new item into the timeline.
§Arguments
request
- No description provided.
sourcepub fn list(&self) -> TimelineListCall<'a, S>
pub fn list(&self) -> TimelineListCall<'a, S>
Create a builder to help you perform the following task:
Retrieves a list of timeline items for the authenticated user.
sourcepub fn patch(&self, request: TimelineItem, id: &str) -> TimelinePatchCall<'a, S>
pub fn patch(&self, request: TimelineItem, id: &str) -> TimelinePatchCall<'a, S>
Create a builder to help you perform the following task:
Updates a timeline item in place. This method supports patch semantics.
§Arguments
request
- No description provided.id
- The ID of the timeline item.
sourcepub fn update(
&self,
request: TimelineItem,
id: &str
) -> TimelineUpdateCall<'a, S>
pub fn update( &self, request: TimelineItem, id: &str ) -> TimelineUpdateCall<'a, S>
Create a builder to help you perform the following task:
Updates a timeline item in place.
§Arguments
request
- No description provided.id
- The ID of the timeline item.