pub struct Channels { /* private fields */ }Expand description
A notification channel used to watch for resource changes.
§Examples:
use drive_v3::objects::Channel;
// You should use the channel return by requests like files.watch or
// changes.watch
let channel = Channel::new();
let response = drive.channels.stop()
.channel(&channel)
.execute();
assert!( response.is_ok() );Implementations§
Source§impl Channels
impl Channels
Sourcepub fn new(credentials: &Credentials) -> Self
pub fn new(credentials: &Credentials) -> Self
Creates a new Channels resource with the given Credentials.
Sourcepub fn stop(&self) -> StopRequest
pub fn stop(&self) -> StopRequest
Stops watching resources through this channel.
See Google’s documentation for more information.
§Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/docshttps://www.googleapis.com/auth/drivehttps://www.googleapis.com/auth/drive.appdatahttps://www.googleapis.com/auth/drive.appshttps://www.googleapis.com/auth/drive.filehttps://www.googleapis.com/auth/drive.metadatahttps://www.googleapis.com/auth/drive.metadata.readonlyhttps://www.googleapis.com/auth/drive.photos.readonlyhttps://www.googleapis.com/auth/drive.readonly
§Examples:
use drive_v3::objects::Channel;
// You should use the channel return by requests like files.watch or
// changes.watch
let channel = Channel::new();
let response = drive.channels.stop()
.channel(&channel)
.execute();
assert!( response.is_ok() );Trait Implementations§
impl Eq for Channels
impl StructuralPartialEq for Channels
Auto Trait Implementations§
impl Freeze for Channels
impl RefUnwindSafe for Channels
impl Send for Channels
impl Sync for Channels
impl Unpin for Channels
impl UnwindSafe for Channels
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.