pub struct CameraObject {
pub storage: u32,
pub handle: u32,
pub parent: u32,
pub filename: String,
pub size: Option<u64>,
pub captured_at: Option<DateTime>,
pub is_folder: bool,
}Expand description
One object on the camera, as the CameraDevice port describes it.
Fields§
§storage: u32The storage (card slot) holding it.
handle: u32Its object handle.
parent: u32The handle of the folder holding it; 0 for the storage root.
filename: StringThe file name the camera stores it under.
size: Option<u64>Its size in bytes, where the camera states it (PTP cannot state 4 GiB or more).
captured_at: Option<DateTime>The capture date from the camera’s object record, as wall-clock time.
is_folder: boolWhether it is a folder rather than a file.
Trait Implementations§
Source§impl Clone for CameraObject
impl Clone for CameraObject
Source§fn clone(&self) -> CameraObject
fn clone(&self) -> CameraObject
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 CameraObject
impl Debug for CameraObject
impl Eq for CameraObject
Source§impl PartialEq for CameraObject
impl PartialEq for CameraObject
Source§fn eq(&self, other: &CameraObject) -> bool
fn eq(&self, other: &CameraObject) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CameraObject
Auto Trait Implementations§
impl Freeze for CameraObject
impl RefUnwindSafe for CameraObject
impl Send for CameraObject
impl Sync for CameraObject
impl Unpin for CameraObject
impl UnsafeUnpin for CameraObject
impl UnwindSafe for CameraObject
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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