pub struct ScopeExtensionBuilder { /* private fields */ }Expand description
Builder for ScopeExtension.
Implementations§
Source§impl ScopeExtensionBuilder
impl ScopeExtensionBuilder
Sourcepub fn origin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn origin<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Instead of using tuple, this field always returns the serialized string for easy understanding and comparison.
pub fn has_origin_wildcard<VALUE: Into<bool>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn build(&self) -> Result<ScopeExtension, ScopeExtensionBuilderError>
pub fn build(&self) -> Result<ScopeExtension, ScopeExtensionBuilderError>
Trait Implementations§
Source§impl Clone for ScopeExtensionBuilder
impl Clone for ScopeExtensionBuilder
Source§fn clone(&self) -> ScopeExtensionBuilder
fn clone(&self) -> ScopeExtensionBuilder
Returns a duplicate 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 ScopeExtensionBuilder
impl RefUnwindSafe for ScopeExtensionBuilder
impl Send for ScopeExtensionBuilder
impl Sync for ScopeExtensionBuilder
impl Unpin for ScopeExtensionBuilder
impl UnsafeUnpin for ScopeExtensionBuilder
impl UnwindSafe for ScopeExtensionBuilder
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