[][src]Struct google_youtube3::LiveBroadcastMethods

pub struct LiveBroadcastMethods<'a, C, A> where
    C: 'a,
    A: 'a, 
{ /* fields omitted */ }

A builder providing access to all methods supported on liveBroadcast resources. It is not used directly, but through the YouTube hub.

Example

Instantiate a resource builder

extern crate hyper;
extern crate hyper_rustls;
extern crate yup_oauth2 as oauth2;
extern crate google_youtube3 as youtube3;
 
use std::default::Default;
use oauth2::{Authenticator, DefaultAuthenticatorDelegate, ApplicationSecret, MemoryStorage};
use youtube3::YouTube;
 
let secret: ApplicationSecret = Default::default();
let auth = Authenticator::new(&secret, DefaultAuthenticatorDelegate,
                              hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())),
                              <MemoryStorage as Default>::default(), None);
let mut hub = YouTube::new(hyper::Client::with_connector(hyper::net::HttpsConnector::new(hyper_rustls::TlsClient::new())), auth);
// Usually you wouldn't bind this to a variable, but keep calling *CallBuilders*
// like `bind(...)`, `control(...)`, `delete(...)`, `insert(...)`, `list(...)`, `transition(...)` and `update(...)`
// to build up your call.
let rb = hub.live_broadcasts();

Methods

impl<'a, C, A> LiveBroadcastMethods<'a, C, A>[src]

pub fn control(
    &self,
    id: &str,
    part: &str
) -> LiveBroadcastControlCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Controls the settings for a slate that can be displayed in the broadcast stream.

Arguments

  • id - The id parameter specifies the YouTube live broadcast ID that uniquely identifies the broadcast in which the slate is being updated.
  • part - The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.

pub fn update(
    &self,
    request: LiveBroadcast
) -> LiveBroadcastUpdateCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Updates a broadcast. For example, you could modify the broadcast settings defined in the liveBroadcast resource's contentDetails object.

Arguments

  • request - No description provided.

pub fn transition(
    &self,
    broadcast_status: &str,
    id: &str,
    part: &str
) -> LiveBroadcastTransitionCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Changes the status of a YouTube live broadcast and initiates any processes associated with the new status. For example, when you transition a broadcast's status to testing, YouTube starts to transmit video to that broadcast's monitor stream. Before calling this method, you should confirm that the value of the status.streamStatus property for the stream bound to your broadcast is active.

Arguments

  • broadcastStatus - The broadcastStatus parameter identifies the state to which the broadcast is changing. Note that to transition a broadcast to either the testing or live state, the status.streamStatus must be active for the stream that the broadcast is bound to.
  • id - The id parameter specifies the unique ID of the broadcast that is transitioning to another status.
  • part - The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.

pub fn insert(
    &self,
    request: LiveBroadcast
) -> LiveBroadcastInsertCall<'a, C, A>
[src]

Create a builder to help you perform the following task:

Creates a broadcast.

Arguments

  • request - No description provided.

pub fn delete(&self, id: &str) -> LiveBroadcastDeleteCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Deletes a broadcast.

Arguments

  • id - The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted.

pub fn list(&self, part: &str) -> LiveBroadcastListCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Returns a list of YouTube broadcasts that match the API request parameters.

Arguments

  • part - The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.

pub fn bind(&self, id: &str, part: &str) -> LiveBroadcastBindCall<'a, C, A>[src]

Create a builder to help you perform the following task:

Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can only be bound to one video stream, though a video stream may be bound to more than one broadcast.

Arguments

  • id - The id parameter specifies the unique ID of the broadcast that is being bound to a video stream.
  • part - The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status.

Trait Implementations

impl<'a, C, A> MethodsBuilder for LiveBroadcastMethods<'a, C, A>[src]

Auto Trait Implementations

impl<'a, C, A> !Send for LiveBroadcastMethods<'a, C, A>

impl<'a, C, A> !Sync for LiveBroadcastMethods<'a, C, A>

impl<'a, C, A> Unpin for LiveBroadcastMethods<'a, C, A>

impl<'a, C, A> !UnwindSafe for LiveBroadcastMethods<'a, C, A>

impl<'a, C, A> !RefUnwindSafe for LiveBroadcastMethods<'a, C, A>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any