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 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 SchemaLocation
impl Debug for SchemaLocation
Source§impl Display for SchemaLocation
impl Display for SchemaLocation
impl Eq 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 (const: unstable) · 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§fn eq(&self, other: &SchemaLocation) -> bool
fn eq(&self, other: &SchemaLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SchemaLocation
impl PartialOrd 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 UnsafeUnpin 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§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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.