pub struct MetadataSource {
pub extension: String,
pub functions_url: Option<String>,
pub enums_url: Option<String>,
pub events_url: Option<String>,
}Expand description
Source configuration for fetching metadata
Fields§
§extension: String§functions_url: Option<String>§enums_url: Option<String>§events_url: Option<String>Implementations§
Source§impl MetadataSource
impl MetadataSource
Sourcepub fn with_functions(self, url: impl Into<String>) -> Self
pub fn with_functions(self, url: impl Into<String>) -> Self
Set functions URL
Sourcepub fn with_enums(self, url: impl Into<String>) -> Self
pub fn with_enums(self, url: impl Into<String>) -> Self
Set enums URL
Sourcepub fn with_events(self, url: impl Into<String>) -> Self
pub fn with_events(self, url: impl Into<String>) -> Self
Set events URL
Trait Implementations§
Source§impl Clone for MetadataSource
impl Clone for MetadataSource
Source§fn clone(&self) -> MetadataSource
fn clone(&self) -> MetadataSource
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 MetadataSource
impl RefUnwindSafe for MetadataSource
impl Send for MetadataSource
impl Sync for MetadataSource
impl Unpin for MetadataSource
impl UnsafeUnpin for MetadataSource
impl UnwindSafe for MetadataSource
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