Struct replicate_rust::api_definitions::GetPrediction
source · pub struct GetPrediction {Show 13 fields
pub id: String,
pub version: String,
pub urls: PredictionsUrls,
pub created_at: String,
pub started_at: 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: 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 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
Auto Trait Implementations§
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