pub struct EnableRestRequest {
pub url: String,
}Expand description
Request body for POST /services/rest/enable.
Adds a #vta-rest service entry to the VTA’s DID document
pointing at url. Refused with ServiceAlreadyEnabled if REST
is already advertised. The wire shape rendered into the DID
document — id: "{DID}#vta-rest", type: "VTARest" — is
preserved by the operation layer (P1.3) for SDK-resolution
compatibility (vta-sdk/src/session.rs:1100).
Fields§
§url: StringImplementations§
Trait Implementations§
Source§impl Clone for EnableRestRequest
impl Clone for EnableRestRequest
Source§fn clone(&self) -> EnableRestRequest
fn clone(&self) -> EnableRestRequest
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 EnableRestRequest
impl Debug for EnableRestRequest
Source§impl<'de> Deserialize<'de> for EnableRestRequest
impl<'de> Deserialize<'de> for EnableRestRequest
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
impl Eq for EnableRestRequest
Source§impl PartialEq for EnableRestRequest
impl PartialEq for EnableRestRequest
Source§impl Serialize for EnableRestRequest
impl Serialize for EnableRestRequest
impl StructuralPartialEq for EnableRestRequest
Auto Trait Implementations§
impl Freeze for EnableRestRequest
impl RefUnwindSafe for EnableRestRequest
impl Send for EnableRestRequest
impl Sync for EnableRestRequest
impl Unpin for EnableRestRequest
impl UnsafeUnpin for EnableRestRequest
impl UnwindSafe for EnableRestRequest
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