ServerLogListBuilder

Struct ServerLogListBuilder 

Source
pub struct ServerLogListBuilder<C> { /* private fields */ }
Expand description

Builder for the server_logs method.

Implementations§

Source§

impl<C> ServerLogListBuilder<C>

Source

pub fn new(client: C) -> Self

Creates a builder with the client.

Source

pub fn as_request(&self) -> &Request

Gets the request object for reuse.

Source

pub fn take(&mut self, length: u8) -> &mut Self

Limits the number of logs to be listed.

Source

pub fn level(&mut self, level: LogLevel) -> &mut Self

Limits the level of logs to be listed to the specified one.

Source

pub fn error(&mut self) -> &mut Self

Limits the listed logs to errors.

This is equivalent to .level(LogLevel::Error).

Source

pub fn warning(&mut self) -> &mut Self

Limits the listed logs to warnings.

This is equivalent to .level(LogLevel::Warning).

Source

pub fn info(&mut self) -> &mut Self

Limits the listed logs to informations.

This is equivalent to .level(LogLevel::Info).

Source

pub fn success(&mut self) -> &mut Self

Limits the listed logs to successes.

This is equivalent to .level(LogLevel::Success).

Source

pub fn debug(&mut self) -> &mut Self

Limits the listed logs to debug logs.

This is equivalent to .level(LogLevel::Debug).

Source

pub fn with_domain(&mut self, domain: impl AsRef<str>) -> &mut Self

Adds a domain name to be included in the listed logs.

You can add more domains to be included with subsequent calls to this method.

Source

pub fn without_domain(&mut self, domain: impl AsRef<str>) -> &mut Self

Adds a domain name to be excluded from the listed logs.

You can add more domains to be excluded with subsequent calls to this method.

Source§

impl<C: Client> ServerLogListBuilder<C>

Source

pub async fn list(&self) -> Result<Vec<Log>, Error<C::Error>>

Lists the logs.

Auto Trait Implementations§

§

impl<C> Freeze for ServerLogListBuilder<C>
where C: Freeze,

§

impl<C> RefUnwindSafe for ServerLogListBuilder<C>
where C: RefUnwindSafe,

§

impl<C> Send for ServerLogListBuilder<C>
where C: Send,

§

impl<C> Sync for ServerLogListBuilder<C>
where C: Sync,

§

impl<C> Unpin for ServerLogListBuilder<C>
where C: Unpin,

§

impl<C> UnwindSafe for ServerLogListBuilder<C>
where C: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,