pub struct Endpoint {
pub identifier: ModuleId,
pub url: Url,
pub extensions: Extensions,
}Available on crate feature
v2_1_1 only.Expand description
One module endpoint of a 2.1.1 party.
Spec: 2.1.1 §version_information_endpoint
Fields§
§identifier: ModuleIdEndpoint identifier.
url: UrlURL to the endpoint.
extensions: ExtensionsUndocumented JSON fields, preserved verbatim.
Implementations§
Source§impl Endpoint
impl Endpoint
Sourcepub const fn assumed_role(&self) -> InterfaceRole
pub const fn assumed_role(&self) -> InterfaceRole
The interface role this endpoint would have in OCPI 2.2 and later.
Always SENDER, since 2.1.1 has no roles and the specification advises sending
SENDER where one is required.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Endpoint
impl<'de> Deserialize<'de> for Endpoint
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 JsonSchema for Endpoint
impl JsonSchema for Endpoint
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Endpoint
Auto Trait Implementations§
impl Freeze for Endpoint
impl RefUnwindSafe for Endpoint
impl Send for Endpoint
impl Sync for Endpoint
impl Unpin for Endpoint
impl UnsafeUnpin for Endpoint
impl UnwindSafe for Endpoint
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