pub enum ParamsFile<'a> {
FsPath(PathBuf),
Blob(BlobObject<'a>),
}
Expand description
The value contained in Param::File.
Because the only way to construct this object is from a valid UTF-8 string it is always safe to convert the value contained within the ParamsFile::FsPath back to a String or &str. Despite the type itself does not guarantee this.
Variants§
FsPath(PathBuf)
Blob(BlobObject<'a>)
Implementations§
source§impl<'a> ParamsFile<'a>
impl<'a> ParamsFile<'a>
sourcepub fn from_param(context: &'a Context, src: &str) -> Result<ParamsFile<'a>>
pub fn from_param(context: &'a Context, src: &str) -> Result<ParamsFile<'a>>
Parse the Param::File value into an object.
If the value was stored into the Params correctly this should not fail.
Trait Implementations§
source§impl<'a> Clone for ParamsFile<'a>
impl<'a> Clone for ParamsFile<'a>
source§fn clone(&self) -> ParamsFile<'a>
fn clone(&self) -> ParamsFile<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for ParamsFile<'a>
impl<'a> Debug for ParamsFile<'a>
source§impl<'a> PartialEq for ParamsFile<'a>
impl<'a> PartialEq for ParamsFile<'a>
impl<'a> Eq for ParamsFile<'a>
impl<'a> StructuralPartialEq for ParamsFile<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParamsFile<'a>
impl<'a> RefUnwindSafe for ParamsFile<'a>
impl<'a> Send for ParamsFile<'a>
impl<'a> Sync for ParamsFile<'a>
impl<'a> Unpin for ParamsFile<'a>
impl<'a> UnwindSafe for ParamsFile<'a>
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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
Checks if this value is equivalent to the given key. Read more
§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.