Struct CameraOptions
pub struct CameraOptions {
pub transform: Transform,
pub fov: Option<f64>,
pub controls: Option<OrbitControls>,
pub active: bool,
pub identifier: Option<String>,
}Expand description
Options for adding a camera object.
Fields§
§transform: TransformThe common transform parameters.
fov: Option<f64>The field of view.
controls: Option<OrbitControls>The orbit control settings.
active: boolWhether the camera becomes the active camera.
identifier: Option<String>The explicit identifier; assigned by the server when None.
Trait Implementations§
§impl Clone for CameraOptions
impl Clone for CameraOptions
§fn clone(&self) -> CameraOptions
fn clone(&self) -> CameraOptions
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 more§impl Debug for CameraOptions
impl Debug for CameraOptions
§impl Default for CameraOptions
impl Default for CameraOptions
§fn default() -> CameraOptions
fn default() -> CameraOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CameraOptions
impl RefUnwindSafe for CameraOptions
impl Send for CameraOptions
impl Sync for CameraOptions
impl Unpin for CameraOptions
impl UnwindSafe for CameraOptions
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