pub struct TimelineMethods<'a, C>where
C: '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 mirror1::{Mirror, FieldMask, hyper_rustls, hyper_util, yup_oauth2};
let secret: yup_oauth2::ApplicationSecret = Default::default();
let auth = yup_oauth2::InstalledFlowAuthenticator::builder(
secret,
yup_oauth2::InstalledFlowReturnMethod::HTTPRedirect,
).build().await.unwrap();
let client = hyper_util::client::legacy::Client::builder(
hyper_util::rt::TokioExecutor::new()
)
.build(
hyper_rustls::HttpsConnectorBuilder::new()
.with_native_roots()
.unwrap()
.https_or_http()
.enable_http1()
.build()
);
let mut hub = Mirror::new(client, 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, C> TimelineMethods<'a, C>
impl<'a, C> TimelineMethods<'a, C>
Sourcepub fn attachments_delete(
&self,
item_id: &str,
attachment_id: &str,
) -> TimelineAttachmentDeleteCall<'a, C>
pub fn attachments_delete( &self, item_id: &str, attachment_id: &str, ) -> TimelineAttachmentDeleteCall<'a, C>
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, C>
pub fn attachments_get( &self, item_id: &str, attachment_id: &str, ) -> TimelineAttachmentGetCall<'a, C>
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, C>
pub fn attachments_insert( &self, item_id: &str, ) -> TimelineAttachmentInsertCall<'a, C>
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, C>
pub fn attachments_list( &self, item_id: &str, ) -> TimelineAttachmentListCall<'a, C>
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, C>
pub fn delete(&self, id: &str) -> TimelineDeleteCall<'a, C>
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, C>
pub fn get(&self, id: &str) -> TimelineGetCall<'a, C>
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, C>
pub fn insert(&self, request: TimelineItem) -> TimelineInsertCall<'a, C>
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, C>
pub fn list(&self) -> TimelineListCall<'a, C>
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, C>
pub fn patch(&self, request: TimelineItem, id: &str) -> TimelinePatchCall<'a, C>
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, C>
pub fn update( &self, request: TimelineItem, id: &str, ) -> TimelineUpdateCall<'a, C>
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.
Trait Implementations§
impl<'a, C> MethodsBuilder for TimelineMethods<'a, C>
Auto Trait Implementations§
impl<'a, C> Freeze for TimelineMethods<'a, C>
impl<'a, C> !RefUnwindSafe for TimelineMethods<'a, C>
impl<'a, C> Send for TimelineMethods<'a, C>where
C: Sync,
impl<'a, C> Sync for TimelineMethods<'a, C>where
C: Sync,
impl<'a, C> Unpin for TimelineMethods<'a, C>
impl<'a, C> !UnwindSafe for TimelineMethods<'a, C>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more