pub struct DataLoaderSettings {
pub application_id: Option<ApplicationId>,
pub recording_id: RecordingId,
pub opened_store_id: Option<StoreId>,
pub force_store_info: bool,
pub entity_path_prefix: Option<EntityPath>,
pub timepoint: Option<TimePoint>,
}Expand description
Recommended settings for the DataLoader.
The loader is free to ignore some or all of these.
External DataLoaders will be passed the following CLI parameters:
--application-id <application_id>--opened-application-id <opened_application_id>(if set)--recording-id <store_id>--opened-recording-id <opened_store_id>(if set)--entity-path-prefix <entity_path_prefix>(if set)--static(iftimepointis set to the timeless timepoint)--timeless[deprecated] (iftimepointis set to the timeless timepoint)--time_sequence <timeline1>=<seq1> <timeline2>=<seq2> ...(iftimepointcontains sequence data)--time_duration_nanos <timeline1>=<duration1> <timeline2>=<duration2> ...(iftimepointcontains duration data) in nanos--time_timestamp_nanos <timeline1>=<timestamp1> <timeline2>=<timestamp2> ...(iftimepointcontains timestamp data) in nanos since epoch
Fields§
§application_id: Option<ApplicationId>The recommended re_log_types::ApplicationId to log the data to, based on the surrounding context.
recording_id: RecordingIdThe recommended recording id to log the data to, based on the surrounding context.
Log data to this recording if you want it to appear in a new recording shared by all data-loaders for the current loading session.
opened_store_id: Option<StoreId>The re_log_types::StoreId that is currently opened in the viewer, if any.
force_store_info: boolWhether SetStoreInfos should be sent, regardless of the surrounding context.
Only useful when creating a recording just-in-time directly in the viewer (which is what happens when importing things into the welcome screen).
entity_path_prefix: Option<EntityPath>What should the logged entity paths be prefixed with?
timepoint: Option<TimePoint>At what time(s) should the data be logged to?
Implementations§
Source§impl DataLoaderSettings
impl DataLoaderSettings
pub fn recommended(recording_id: impl Into<RecordingId>) -> Self
Sourcepub fn recommended_store_id(&self) -> StoreId
pub fn recommended_store_id(&self) -> StoreId
Returns the recommended re_log_types::StoreId to log the data to.
Sourcepub fn opened_store_id_or_recommended(&self) -> StoreId
pub fn opened_store_id_or_recommended(&self) -> StoreId
Returns the currently opened re_log_types::StoreId if any. Otherwise, returns the
recommended store id.
Sourcepub fn to_cli_args(&self) -> Vec<String>
pub fn to_cli_args(&self) -> Vec<String>
Generates CLI flags from these settings, for external data loaders.
Trait Implementations§
Source§impl Clone for DataLoaderSettings
impl Clone for DataLoaderSettings
Source§fn clone(&self) -> DataLoaderSettings
fn clone(&self) -> DataLoaderSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for DataLoaderSettings
impl RefUnwindSafe for DataLoaderSettings
impl Send for DataLoaderSettings
impl Sync for DataLoaderSettings
impl Unpin for DataLoaderSettings
impl UnwindSafe for DataLoaderSettings
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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request