[−][src]Struct nextcloud_passwords_client::service::ServiceApi
Access the service API
Implementations
impl<'a> ServiceApi<'a>
[src]
pub async fn generate_password_with_user_settings<'_>(
&'_ self
) -> Result<GenerateResponse, Error>
[src]
&'_ self
) -> Result<GenerateResponse, Error>
Generates a password with the users default settings
pub async fn generate_password<'_>(
&'_ self,
settings: GeneratePassword
) -> Result<GenerateResponse, Error>
[src]
&'_ self,
settings: GeneratePassword
) -> Result<GenerateResponse, Error>
The password action generates one password with the given settings.
Notes
- Generated passwords are checked for security automatically
- The maximum value for strength is 4
pub async fn avatar<'_>(
&'_ self,
user: Uuid,
__arg2: MiniatureSize
) -> Result<Bytes, Error>
[src]
&'_ self,
user: Uuid,
__arg2: MiniatureSize
) -> Result<Bytes, Error>
The avatar action returns a png avatar icon for the given user id.
Notes
- If the user did not specify an avatar a default image will be generated
pub async fn favicon<'_>(
&'_ self,
domain: String,
__arg2: MiniatureSize
) -> Result<Bytes, Error>
[src]
&'_ self,
domain: String,
__arg2: MiniatureSize
) -> Result<Bytes, Error>
The favicon action returns a png favicon icon for the given domain.
Notes
- If no favicon can be found a default image will be generated
pub async fn preview<'_>(
&'_ self,
domain: String,
view: Option<View>,
width: Option<String>,
height: Option<String>
) -> Result<Bytes, Error>
[src]
&'_ self,
domain: String,
view: Option<View>,
width: Option<String>,
height: Option<String>
) -> Result<Bytes, Error>
The preview action returns a jpeg preview image for the given domain.
The default width is 640 The default height is 360... The default view is Desktop
Notes
- If no image can be created a default image will be used
- This action is known to be slow if the cache is empty
- The width and height must be a multiple of 10
- The minimum width is 240 pixels
- The maximum width is 1280 pixels
- The minimum height is 240 pixels
- The maximum height is 1280 pixels
- If a width and height were specified, the image will be cropped to fill the area
- The width and height can be 0. In this case, it is up to the api to set the optimal value
- You can specify a range for width and height by passing SIZE..., SIZE...SIZE or ...SIZE where size is a number. The left value will be the minimum and the right value the maximum. The api will try to generate an image that fits the given values without cropping
Auto Trait Implementations
impl<'a> !RefUnwindSafe for ServiceApi<'a>
impl<'a> Send for ServiceApi<'a>
impl<'a> Sync for ServiceApi<'a>
impl<'a> Unpin for ServiceApi<'a>
impl<'a> !UnwindSafe for ServiceApi<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,