pub struct GetPrediction {Show 13 fields
pub id: String,
pub version: String,
pub urls: PredictionsUrls,
pub created_at: String,
pub started_at: Option<String>,
pub completed_at: Option<String>,
pub source: Option<PredictionSource>,
pub status: PredictionStatus,
pub input: HashMap<String, Value>,
pub output: Option<Value>,
pub error: Option<String>,
pub logs: Option<String>,
pub metrics: Option<HashMap<String, Value>>,
}
Expand description
POST https://api.replicate.com/v1/predictions
Fields§
§id: String
§version: String
§urls: PredictionsUrls
§created_at: String
§started_at: Option<String>
§completed_at: Option<String>
§source: Option<PredictionSource>
§status: PredictionStatus
§input: HashMap<String, Value>
§output: Option<Value>
§error: Option<String>
§logs: Option<String>
§metrics: Option<HashMap<String, Value>>
Trait Implementations§
Source§impl Clone for GetPrediction
impl Clone for GetPrediction
Source§fn clone(&self) -> GetPrediction
fn clone(&self) -> GetPrediction
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetPrediction
impl Debug for GetPrediction
Source§impl<'de> Deserialize<'de> for GetPrediction
impl<'de> Deserialize<'de> for GetPrediction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GetPrediction
impl Display for GetPrediction
Source§impl PartialEq for GetPrediction
impl PartialEq for GetPrediction
Source§impl Serialize for GetPrediction
impl Serialize for GetPrediction
impl StructuralPartialEq for GetPrediction
Auto Trait Implementations§
impl Freeze for GetPrediction
impl RefUnwindSafe for GetPrediction
impl Send for GetPrediction
impl Sync for GetPrediction
impl Unpin for GetPrediction
impl UnwindSafe for GetPrediction
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