pub struct BasePath {
pub id: u32,
pub name: Option<String>,
pub is_dataset_root: bool,
pub path: String,
}Fields§
§id: u32§name: Option<String>§is_dataset_root: bool§path: StringThe full URI string (e.g., “s3://bucket/path”)
Implementations§
Source§impl BasePath
impl BasePath
Sourcepub fn new(
id: u32,
path: String,
name: Option<String>,
is_dataset_root: bool,
) -> Self
pub fn new( id: u32, path: String, name: Option<String>, is_dataset_root: bool, ) -> Self
Create a new BasePath
§Arguments
id- Unique identifier for this base pathpath- Full URI string (e.g., “s3://bucket/path”, “/local/path”)name- Optional human-readable name for this baseis_dataset_root- Whether this is the dataset root or a data-only base
Sourcepub fn extract_path(&self, registry: Arc<ObjectStoreRegistry>) -> Result<Path>
pub fn extract_path(&self, registry: Arc<ObjectStoreRegistry>) -> Result<Path>
Extract the object store path from this BasePath’s URI.
This is a synchronous operation that parses the URI without initializing an object store.
Trait Implementations§
Source§impl DeepSizeOf for BasePath
impl DeepSizeOf for BasePath
Source§fn deep_size_of_children(&self, context: &mut Context) -> usize
fn deep_size_of_children(&self, context: &mut Context) -> usize
Returns an estimation of the heap-managed storage of this object.
This does not include the size of the object itself. Read more
Source§fn deep_size_of(&self) -> usize
fn deep_size_of(&self) -> usize
Returns an estimation of a total size of memory owned by the
object, including heap-managed storage. Read more
impl StructuralPartialEq for BasePath
Auto Trait Implementations§
impl Freeze for BasePath
impl RefUnwindSafe for BasePath
impl Send for BasePath
impl Sync for BasePath
impl Unpin for BasePath
impl UnwindSafe for BasePath
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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>
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