pub enum GatewayFileStorageRef {
Memory {
content_id: ContentId,
},
TableFs {
path: String,
},
}Expand description
Where a GatewayFile’s bytes live.
Variants§
Memory
Bytes held in an in-memory content-addressed blob.
TableFs
Bytes held on the table-backed filesystem at the given path.
Implementations§
Source§impl GatewayFileStorageRef
impl GatewayFileStorageRef
Sourcepub fn memory(content_id: ContentId) -> Self
pub fn memory(content_id: ContentId) -> Self
Creates a GatewayFileStorageRef::Memory reference for content_id.
Sourcepub fn table_fs(path: impl Into<String>) -> Self
pub fn table_fs(path: impl Into<String>) -> Self
Creates a GatewayFileStorageRef::TableFs reference for path.
Trait Implementations§
Source§impl Clone for GatewayFileStorageRef
impl Clone for GatewayFileStorageRef
Source§fn clone(&self) -> GatewayFileStorageRef
fn clone(&self) -> GatewayFileStorageRef
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 GatewayFileStorageRef
impl Debug for GatewayFileStorageRef
impl Eq for GatewayFileStorageRef
Source§impl PartialEq for GatewayFileStorageRef
impl PartialEq for GatewayFileStorageRef
Source§fn eq(&self, other: &GatewayFileStorageRef) -> bool
fn eq(&self, other: &GatewayFileStorageRef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GatewayFileStorageRef
Auto Trait Implementations§
impl Freeze for GatewayFileStorageRef
impl RefUnwindSafe for GatewayFileStorageRef
impl Send for GatewayFileStorageRef
impl Sync for GatewayFileStorageRef
impl Unpin for GatewayFileStorageRef
impl UnsafeUnpin for GatewayFileStorageRef
impl UnwindSafe for GatewayFileStorageRef
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