[][src]Enum bigml::resource::execution::SourceId

pub enum SourceId {
    Library(Id<Library>),
    Script(Id<Script>),
}

Either a script or library ID.

Variants

Library(Id<Library>)

A library ID.

Script(Id<Script>)

A script ID.

Methods

impl SourceId[src]

pub fn dashboard_url(&self) -> Url[src]

Build a URL pointing to the BigML dashboard view for this script.

pub async fn fetch_source_code<'_, '_>(
    &'_ self,
    client: &'_ Client
) -> Result<String>
[src]

Download the corresponding source code.

Trait Implementations

impl Clone for SourceId[src]

impl Debug for SourceId[src]

impl Display for SourceId[src]

impl Serialize for SourceId[src]

impl<'de> Deserialize<'de> for SourceId[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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