[][src]Struct odata_client::SingletonEndpoint

pub struct SingletonEndpoint<P> {
    pub service_url: &'static str,
    pub name: &'static str,
    pub marker: PhantomData<P>,
}

Represents a singleton in an OData service.

Fields

service_url: &'static strname: &'static strmarker: PhantomData<P>

Implementations

impl<P: EntityProperties> SingletonEndpoint<P>[src]

pub async fn get<Client: ODataHttpClient>(
    &self,
    client: &Client
) -> Result<Entity<P>, Error>
[src]

Retrieves the entity record which occupies the singleton endpoint.

Auto Trait Implementations

impl<P> RefUnwindSafe for SingletonEndpoint<P> where
    P: RefUnwindSafe
[src]

impl<P> Send for SingletonEndpoint<P> where
    P: Send
[src]

impl<P> Sync for SingletonEndpoint<P> where
    P: Sync
[src]

impl<P> Unpin for SingletonEndpoint<P> where
    P: Unpin
[src]

impl<P> UnwindSafe for SingletonEndpoint<P> where
    P: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.