MCPcopy Create free account
hub / github.com/NativeScript/SimDeck / as_native_arg

Method as_native_arg

packages/server/src/camera.rs:25–32  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

23
24impl CameraSourceKind {
25 fn as_native_arg(&self) -> &'static str {
26 match self {
27 Self::Placeholder => "placeholder",
28 Self::Image => "image",
29 Self::Video => "video",
30 Self::Webcam => "webcam",
31 }
32 }
33}
34
35#[derive(Clone, Debug, Deserialize, Serialize)]

Callers 2

native_start_cameraFunction · 0.80
native_switch_cameraFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected