pub struct Datasource {
pub name: String,
pub provider: String,
pub url: StringOrEnv,
pub span: Span,
}Expand description
datasource db { ... }
Fields§
§name: String§provider: String§url: StringOrEnv§span: SpanTrait Implementations§
Source§impl Clone for Datasource
impl Clone for Datasource
Source§fn clone(&self) -> Datasource
fn clone(&self) -> Datasource
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 Datasource
impl RefUnwindSafe for Datasource
impl Send for Datasource
impl Sync for Datasource
impl Unpin for Datasource
impl UnsafeUnpin for Datasource
impl UnwindSafe for Datasource
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