#[non_exhaustive]pub struct ScriptTransform {
pub lang: Option<String>,
pub params: Option<IndexMap<String, Value>>,
pub source: Option<ScriptSource>,
pub id: Option<String>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.lang: Option<String>§params: Option<IndexMap<String, Value>>§source: Option<ScriptSource>§id: Option<String>Implementations§
Source§impl ScriptTransform
impl ScriptTransform
Sourcepub fn new() -> ScriptTransform
pub fn new() -> ScriptTransform
A ScriptTransform with its required properties set.
Source§impl ScriptTransform
impl ScriptTransform
Sourcepub fn lang(self, value: impl Into<String>) -> ScriptTransform
pub fn lang(self, value: impl Into<String>) -> ScriptTransform
Sets lang.
Sourcepub fn params(
self,
value: impl Into<IndexMap<String, Value>>,
) -> ScriptTransform
pub fn params( self, value: impl Into<IndexMap<String, Value>>, ) -> ScriptTransform
Sets params.
Sourcepub fn source(self, value: impl Into<ScriptSource>) -> ScriptTransform
pub fn source(self, value: impl Into<ScriptSource>) -> ScriptTransform
Sets source.
Sourcepub fn id(self, value: impl Into<String>) -> ScriptTransform
pub fn id(self, value: impl Into<String>) -> ScriptTransform
Sets id.
Trait Implementations§
Source§impl Clone for ScriptTransform
impl Clone for ScriptTransform
Source§fn clone(&self) -> ScriptTransform
fn clone(&self) -> ScriptTransform
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ScriptTransform
impl Debug for ScriptTransform
Source§impl<'de> Deserialize<'de> for ScriptTransform
impl<'de> Deserialize<'de> for ScriptTransform
Source§fn deserialize<D__>(
deserializer: D__,
) -> Result<ScriptTransform, <D__ as Deserializer<'de>>::Error>where
D__: Deserializer<'de>,
fn deserialize<D__>(
deserializer: D__,
) -> Result<ScriptTransform, <D__ as Deserializer<'de>>::Error>where
D__: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ScriptTransform> for TransformContainer
impl From<ScriptTransform> for TransformContainer
Source§fn from(value: ScriptTransform) -> TransformContainer
fn from(value: ScriptTransform) -> TransformContainer
Converts to this type from the input type.
Source§impl PartialEq for ScriptTransform
impl PartialEq for ScriptTransform
Source§impl Serialize for ScriptTransform
impl Serialize for ScriptTransform
Source§fn serialize<S__>(
&self,
serializer: S__,
) -> Result<<S__ as Serializer>::Ok, <S__ as Serializer>::Error>where
S__: Serializer,
fn serialize<S__>(
&self,
serializer: S__,
) -> Result<<S__ as Serializer>::Ok, <S__ as Serializer>::Error>where
S__: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ScriptTransform
Auto Trait Implementations§
impl Freeze for ScriptTransform
impl RefUnwindSafe for ScriptTransform
impl Send for ScriptTransform
impl Sync for ScriptTransform
impl Unpin for ScriptTransform
impl UnsafeUnpin for ScriptTransform
impl UnwindSafe for ScriptTransform
Blanket Implementations§
impl<T> Allocation for T
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