pub struct RustTrajectory {
pub trajectory_id: String,
pub rewards: Vec<f64>,
pub log_probs: Vec<f64>,
pub sequence_length: usize,
pub total_reward: f64,
pub metadata: HashMap<String, String>,
}Expand description
Lightweight trajectory representation for Rust processing
Fields§
§trajectory_id: String§rewards: Vec<f64>§log_probs: Vec<f64>§sequence_length: usize§total_reward: f64§metadata: HashMap<String, String>Implementations§
Trait Implementations§
Source§impl Clone for RustTrajectory
impl Clone for RustTrajectory
Source§fn clone(&self) -> RustTrajectory
fn clone(&self) -> RustTrajectory
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 RustTrajectory
impl Debug for RustTrajectory
Source§impl<'de> Deserialize<'de> for RustTrajectory
impl<'de> Deserialize<'de> for RustTrajectory
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 Freeze for RustTrajectory
impl RefUnwindSafe for RustTrajectory
impl Send for RustTrajectory
impl Sync for RustTrajectory
impl Unpin for RustTrajectory
impl UnwindSafe for RustTrajectory
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more