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>>>,
) -> Self
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>>>, ) -> Self
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, 'a> Deserialize<'de> for Info<'a>
impl<'de: 'a, 'a> Deserialize<'de> for Info<'a>
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<'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> 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