pub struct Info<'a> {
pub vendor: Cow<'a, str>,
pub product: Cow<'a, str>,
pub version: Cow<'a, str>,
pub url: Cow<'a, str>,
pub interfaces: Vec<Cow<'a, str>>,
}Expand description
Information about a Varlink service implementation.
This is the return type for the GetInfo method of the org.varlink.service interface.
Fields§
§vendor: Cow<'a, str>The vendor of the service.
product: Cow<'a, str>The product name of the service.
version: Cow<'a, str>The version of the service.
url: Cow<'a, str>The URL associated with the service.
interfaces: Vec<Cow<'a, str>>List of interfaces provided by the service.
Implementations§
Source§impl<'a> Info<'a>
impl<'a> Info<'a>
Sourcepub fn new(
vendor: impl Into<Cow<'a, str>>,
product: impl Into<Cow<'a, str>>,
version: impl Into<Cow<'a, str>>,
url: impl Into<Cow<'a, str>>,
interfaces: impl IntoIterator<Item = impl Into<Cow<'a, str>>>,
) -> Info<'a>
pub fn new( vendor: impl Into<Cow<'a, str>>, product: impl Into<Cow<'a, str>>, version: impl Into<Cow<'a, str>>, url: impl Into<Cow<'a, str>>, interfaces: impl IntoIterator<Item = impl Into<Cow<'a, str>>>, ) -> Info<'a>
Create a new Info instance.
Sourcepub fn into_owned(self) -> Info<'static>
pub fn into_owned(self) -> Info<'static>
Convert this info into an owned version with 'static lifetime.
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for Info<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for Info<'a>where
'de: 'a,
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Info<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Info<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a> Serialize for Info<'a>
impl<'a> Serialize for Info<'a>
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> StructuralPartialEq for Info<'a>
Auto Trait Implementations§
impl<'a> Freeze for Info<'a>
impl<'a> RefUnwindSafe for Info<'a>
impl<'a> Send for Info<'a>
impl<'a> Sync for Info<'a>
impl<'a> Unpin for Info<'a>
impl<'a> UnsafeUnpin for Info<'a>
impl<'a> UnwindSafe for Info<'a>
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