pub struct SourceBuilder { /* private fields */ }Expand description
Builds a Source.
Implementations§
Source§impl SourceBuilder
impl SourceBuilder
pub fn new() -> Self
pub fn with_source(self, source: impl Into<String>) -> Self
pub fn with_resource(self, resource: impl Into<String>) -> Self
pub fn with_options(self, options: Options) -> Self
pub fn with_option<K: Into<String>, V: Into<OptionValue>>( self, key: K, value: V, ) -> Self
pub fn with_skip_errors(self, skip_errors: bool) -> Self
pub fn with_resource_colon(self, resource_colon: bool) -> Self
pub fn build(self) -> Result<Source, Error>
Trait Implementations§
Source§impl Clone for SourceBuilder
impl Clone for SourceBuilder
Source§fn clone(&self) -> SourceBuilder
fn clone(&self) -> SourceBuilder
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 SourceBuilder
impl Debug for SourceBuilder
Source§impl Default for SourceBuilder
impl Default for SourceBuilder
Source§fn default() -> SourceBuilder
fn default() -> SourceBuilder
Returns the “default value” for a type. Read more
Source§impl From<Source> for SourceBuilder
impl From<Source> for SourceBuilder
Source§impl PartialEq for SourceBuilder
impl PartialEq for SourceBuilder
Source§fn eq(&self, other: &SourceBuilder) -> bool
fn eq(&self, other: &SourceBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SourceBuilder
Source§impl TryFrom<&String> for SourceBuilder
impl TryFrom<&String> for SourceBuilder
Source§impl TryFrom<&str> for SourceBuilder
impl TryFrom<&str> for SourceBuilder
Auto Trait Implementations§
impl Freeze for SourceBuilder
impl RefUnwindSafe for SourceBuilder
impl Send for SourceBuilder
impl Sync for SourceBuilder
impl Unpin for SourceBuilder
impl UnsafeUnpin for SourceBuilder
impl UnwindSafe for SourceBuilder
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