pub enum SchemaLocation {
Path(PathBuf),
Url(Url),
}
Variants§
Implementations§
source§impl SchemaLocation
impl SchemaLocation
pub fn get_content(&self, cache_dir: &Path) -> WriterResult<String>
pub fn try_join(&self, other: &str) -> WriterResult<Self>
Trait Implementations§
source§impl Clone for SchemaLocation
impl Clone for SchemaLocation
source§fn clone(&self) -> SchemaLocation
fn clone(&self) -> SchemaLocation
Returns a copy of the value. Read more
1.6.0 · 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 SchemaLocation
impl Debug for SchemaLocation
source§impl Display for SchemaLocation
impl Display for SchemaLocation
source§impl FromStr for SchemaLocation
impl FromStr for SchemaLocation
source§impl Ord for SchemaLocation
impl Ord for SchemaLocation
source§fn cmp(&self, other: &SchemaLocation) -> Ordering
fn cmp(&self, other: &SchemaLocation) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SchemaLocation
impl PartialEq for SchemaLocation
source§impl PartialOrd for SchemaLocation
impl PartialOrd for SchemaLocation
impl Eq for SchemaLocation
impl StructuralPartialEq for SchemaLocation
Auto Trait Implementations§
impl Freeze for SchemaLocation
impl RefUnwindSafe for SchemaLocation
impl Send for SchemaLocation
impl Sync for SchemaLocation
impl Unpin for SchemaLocation
impl UnwindSafe for SchemaLocation
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> 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
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.