pub struct StorageNodeIdentity {
pub id: String,
}Expand description
Represents a storage node identity.
This is the body of contained in tokens used by storage nodes when they call the directory.
Fields§
§id: StringTrait Implementations§
Source§impl Debug for StorageNodeIdentity
impl Debug for StorageNodeIdentity
Source§impl<'de> Deserialize<'de> for StorageNodeIdentity
impl<'de> Deserialize<'de> for StorageNodeIdentity
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<B: Send> FromRequest<B> for StorageNodeIdentity
impl<B: Send> FromRequest<B> for StorageNodeIdentity
Source§type Rejection = HTTPError
type Rejection = HTTPError
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
Source§fn from_request<'life0, 'async_trait>(
req: &'life0 mut RequestParts<B>,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn from_request<'life0, 'async_trait>(
req: &'life0 mut RequestParts<B>,
) -> Pin<Box<dyn Future<Output = Result<Self, Self::Rejection>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Perform the extraction.
Auto Trait Implementations§
impl Freeze for StorageNodeIdentity
impl RefUnwindSafe for StorageNodeIdentity
impl Send for StorageNodeIdentity
impl Sync for StorageNodeIdentity
impl Unpin for StorageNodeIdentity
impl UnwindSafe for StorageNodeIdentity
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