pub enum PressioOption {
Show 26 variants
None(None),
Bool(bool),
U8(u8),
I8(i8),
U16(u16),
I16(i16),
U32(u32),
I32(i32),
U64(u64),
I64(i64),
F32(f32),
F64(f64),
String(String),
VecString(Vec<String>),
DataBool(NdArray<bool>),
DataU8(NdArray<u8>),
DataU16(NdArray<u16>),
DataU32(NdArray<u32>),
DataU64(NdArray<u64>),
DataI8(NdArray<i8>),
DataI16(NdArray<i16>),
DataI32(NdArray<i32>),
DataI64(NdArray<i64>),
DataF32(NdArray<f32>),
DataF64(NdArray<f64>),
Nested(BTreeMap<String, Self>),
}Expand description
Pressio option value
Variants§
None(None)
Bool(bool)
U8(u8)
I8(i8)
U16(u16)
I16(i16)
U32(u32)
I32(i32)
U64(u64)
I64(i64)
F32(f32)
F64(f64)
String(String)
VecString(Vec<String>)
DataBool(NdArray<bool>)
DataU8(NdArray<u8>)
DataU16(NdArray<u16>)
DataU32(NdArray<u32>)
DataU64(NdArray<u64>)
DataI8(NdArray<i8>)
DataI16(NdArray<i16>)
DataI32(NdArray<i32>)
DataI64(NdArray<i64>)
DataF32(NdArray<f32>)
DataF64(NdArray<f64>)
Nested(BTreeMap<String, Self>)
Trait Implementations§
Source§impl Clone for PressioOption
impl Clone for PressioOption
Source§impl Debug for PressioOption
impl Debug for PressioOption
Source§impl<'de> Deserialize<'de> for PressioOption
impl<'de> Deserialize<'de> for PressioOption
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 JsonSchema for PressioOption
impl JsonSchema for PressioOption
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for PressioOption
impl Freeze for PressioOptionwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
*const bool is !null: Freeze,
*const [usize] is !null: Freeze,
PhantomData<[usize]>: Freeze,
*const u16 is !null: Freeze,
*const u32 is !null: Freeze,
*const u64 is !null: Freeze,
*const i8 is !null: Freeze,
*const i16 is !null: Freeze,
*const i32 is !null: Freeze,
*const i64 is !null: Freeze,
*const f32 is !null: Freeze,
*const f64 is !null: Freeze,
*const LeafNode<String, PressioOption> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, PressioOption)>>: Freeze,
impl Move for PressioOption
impl RefUnwindSafe for PressioOptionwhere
bool: RefUnwindSafe,
u8: RefUnwindSafe,
u16: RefUnwindSafe,
u32: RefUnwindSafe,
u64: RefUnwindSafe,
i8: RefUnwindSafe,
i16: RefUnwindSafe,
i32: RefUnwindSafe,
i64: RefUnwindSafe,
f32: RefUnwindSafe,
f64: RefUnwindSafe,
impl Send for PressioOptionwhere
RawVecInner: Send,
ArrayBase<OwnedRepr<bool>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<u8>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<u16>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<u32>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<u64>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<i8>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<i16>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<i32>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<i64>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<f32>, Dim<IxDynImpl>>: Send,
ArrayBase<OwnedRepr<f64>, Dim<IxDynImpl>>: Send,
NodeRef<Owned, String, PressioOption, LeafOrInternal>: Send,
BoxRaw<(String, PressioOption)>: Send,
impl Sync for PressioOptionwhere
RawVecInner: Sync,
ArrayBase<OwnedRepr<bool>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<u8>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<u16>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<u32>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<u64>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<i8>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<i16>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<i32>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<i64>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<f32>, Dim<IxDynImpl>>: Sync,
ArrayBase<OwnedRepr<f64>, Dim<IxDynImpl>>: Sync,
NodeRef<Owned, String, PressioOption, LeafOrInternal>: Sync,
BoxRaw<(String, PressioOption)>: Sync,
impl Unpin for PressioOptionwhere
*const u8 is !null: Unpin,
*const bool is !null: Unpin,
Box<[usize]>: Unpin,
*const u16 is !null: Unpin,
*const u32 is !null: Unpin,
*const u64 is !null: Unpin,
*const i8 is !null: Unpin,
*const i16 is !null: Unpin,
*const i32 is !null: Unpin,
*const i64 is !null: Unpin,
*const f32 is !null: Unpin,
*const f64 is !null: Unpin,
*const LeafNode<String, PressioOption> is !null: Unpin,
Box<(String, PressioOption)>: Unpin,
impl UnsafeUnpin for PressioOptionwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const bool is !null: UnsafeUnpin,
*const [usize] is !null: UnsafeUnpin,
PhantomData<[usize]>: UnsafeUnpin,
*const u16 is !null: UnsafeUnpin,
*const u32 is !null: UnsafeUnpin,
*const u64 is !null: UnsafeUnpin,
*const i8 is !null: UnsafeUnpin,
*const i16 is !null: UnsafeUnpin,
*const i32 is !null: UnsafeUnpin,
*const i64 is !null: UnsafeUnpin,
*const f32 is !null: UnsafeUnpin,
*const f64 is !null: UnsafeUnpin,
*const LeafNode<String, PressioOption> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PressioOption)>>: UnsafeUnpin,
impl UnwindSafe for PressioOptionwhere
RawVecInner: UnwindSafe,
NonNull<bool>: UnwindSafe,
BoxRaw<[usize]>: UnwindSafe,
NonNull<u8>: UnwindSafe,
NonNull<u16>: UnwindSafe,
NonNull<u32>: UnwindSafe,
NonNull<u64>: UnwindSafe,
NonNull<i8>: UnwindSafe,
NonNull<i16>: UnwindSafe,
NonNull<i32>: UnwindSafe,
NonNull<i64>: UnwindSafe,
NonNull<f32>: UnwindSafe,
NonNull<f64>: UnwindSafe,
BTreeMap<String, PressioOption>: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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