Struct funscript::FScript

source ·
pub struct FScript {
Show 18 fields pub version: String, pub inverted: bool, pub range: i32, pub bookmark: i32, pub last_position: i64, pub graph_duration: i32, pub speed_ratio: f32, pub injection_speed: i32, pub injection_bias: f32, pub scripting_mode: i32, pub simulator_presets: Vec<SimulatorPresets>, pub active_simulator: i32, pub reduction_tolerance: f32, pub reduction_stretch: f32, pub clips: Vec<Value>, pub actions: Vec<FSPoint>, pub raw_actions: Vec<FSPoint>, pub metadata: OFSMetadata,
}
Expand description

a serializable and deserializable .funscript file

Fields§

§version: String§inverted: bool§range: i32§bookmark: i32§last_position: i64§graph_duration: i32§speed_ratio: f32§injection_speed: i32§injection_bias: f32§scripting_mode: i32§simulator_presets: Vec<SimulatorPresets>§active_simulator: i32§reduction_tolerance: f32§reduction_stretch: f32§clips: Vec<Value>§actions: Vec<FSPoint>§raw_actions: Vec<FSPoint>§metadata: OFSMetadata

Trait Implementations§

source§

impl Debug for FScript

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for FScript

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for FScriptwhere FScript: Default,

source§

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 Serialize for FScript

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,