pub struct ExternalResourceDefinition {
pub name: Option<String>,
pub endpoint: OneOfEndpointDefinitionOrUri,
}Expand description
Represents the definition of an external resource
Fields§
§name: Option<String>Gets/sets the external resource’s name, if any
endpoint: OneOfEndpointDefinitionOrUriGets/sets the endpoint at which to get the defined resource
Trait Implementations§
Source§impl Clone for ExternalResourceDefinition
impl Clone for ExternalResourceDefinition
Source§fn clone(&self) -> ExternalResourceDefinition
fn clone(&self) -> ExternalResourceDefinition
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 ExternalResourceDefinition
impl Debug for ExternalResourceDefinition
Source§impl Default for ExternalResourceDefinition
impl Default for ExternalResourceDefinition
Source§fn default() -> ExternalResourceDefinition
fn default() -> ExternalResourceDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalResourceDefinition
impl<'de> Deserialize<'de> for ExternalResourceDefinition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExternalResourceDefinition
impl PartialEq for ExternalResourceDefinition
Source§fn eq(&self, other: &ExternalResourceDefinition) -> bool
fn eq(&self, other: &ExternalResourceDefinition) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ExternalResourceDefinition
impl StructuralPartialEq for ExternalResourceDefinition
Auto Trait Implementations§
impl Freeze for ExternalResourceDefinition
impl RefUnwindSafe for ExternalResourceDefinition
impl Send for ExternalResourceDefinition
impl Sync for ExternalResourceDefinition
impl Unpin for ExternalResourceDefinition
impl UnsafeUnpin for ExternalResourceDefinition
impl UnwindSafe for ExternalResourceDefinition
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