pub struct ProtocolInit<I = ProtocolInstance> {
pub user_fields: Vec<String>,
pub location_fields: Vec<String>,
pub icon: String,
pub field_types: BTreeMap<String, FieldType>,
pub instances: Vec<I>,
}
Expand description
Fields§
§user_fields: Vec<String>
Fields which may be used to identify a third party user.
location_fields: Vec<String>
Fields which may be used to identify a third party location.
icon: String
A content URI representing an icon for the third party protocol.
field_types: BTreeMap<String, FieldType>
The type definitions for the fields defined in user_fields
and location_fields
.
instances: Vec<I>
A list of objects representing independent instances of configuration.
Trait Implementations§
Source§impl<I> Debug for ProtocolInit<I>where
I: Debug,
impl<I> Debug for ProtocolInit<I>where
I: Debug,
Source§impl<I> From<ProtocolInit<I>> for Protocol<I>
impl<I> From<ProtocolInit<I>> for Protocol<I>
Source§fn from(init: ProtocolInit<I>) -> Protocol<I>
fn from(init: ProtocolInit<I>) -> Protocol<I>
Converts to this type from the input type.
Auto Trait Implementations§
impl<I> Freeze for ProtocolInit<I>
impl<I> RefUnwindSafe for ProtocolInit<I>where
I: RefUnwindSafe,
impl<I> Send for ProtocolInit<I>where
I: Send,
impl<I> Sync for ProtocolInit<I>where
I: Sync,
impl<I> Unpin for ProtocolInit<I>where
I: Unpin,
impl<I> UnwindSafe for ProtocolInit<I>where
I: UnwindSafe,
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