pub struct OperationFile {
pub filename: String,
pub file_path: String,
pub file_type: FileTypes,
pub checksum_override: Option<HashId>,
}Fields§
§filename: String§file_path: String§file_type: FileTypes§checksum_override: Option<HashId>Implementations§
Source§impl OperationFile
impl OperationFile
pub fn new(file_path: impl Into<String>) -> Self
pub fn set_file_type(self, file_type: FileTypes) -> Self
pub fn set_checksum_override(self, checksum: HashId) -> Self
pub fn storage_file_path( workspace: &Workspace, path_or_uri: &str, checksum: &HashId, ) -> Result<String, FileAdditionError>
pub fn get_files_for_operation( conn: &OperationsConnection, operation_hash: &HashId, ) -> Result<Vec<OperationFileInfo>, FileAdditionError>
pub fn query_by_operations( conn: &OperationsConnection, operations: &[HashId], ) -> Result<HashMap<HashId, Vec<OperationFileInfo>>, FileAdditionError>
Auto Trait Implementations§
impl Freeze for OperationFile
impl RefUnwindSafe for OperationFile
impl Send for OperationFile
impl Sync for OperationFile
impl Unpin for OperationFile
impl UnsafeUnpin for OperationFile
impl UnwindSafe for OperationFile
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
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