#[non_exhaustive]pub enum FileOrLocation {
File(Content),
Location(String),
}
Available on crate feature
api
and (crate features federation-api-c
or federation-api-s
) only.Expand description
A file from the content repository or the location where it can be found.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for FileOrLocation
impl Clone for FileOrLocation
Source§fn clone(&self) -> FileOrLocation
fn clone(&self) -> FileOrLocation
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 moreAuto Trait Implementations§
impl Freeze for FileOrLocation
impl RefUnwindSafe for FileOrLocation
impl Send for FileOrLocation
impl Sync for FileOrLocation
impl Unpin for FileOrLocation
impl UnwindSafe for FileOrLocation
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