Enum hypothesis::cli::GroupsCommand[][src]

pub enum GroupsCommand {
    List {
        filters: GroupFilters,
        file: Option<PathBuf>,
    },
    Create {
        name: String,
        description: Option<String>,
        file: Option<PathBuf>,
    },
    Fetch {
        id: String,
        expand: Vec<Expand>,
        file: Option<PathBuf>,
    },
    Update {
        id: String,
        name: Option<String>,
        description: Option<String>,
        file: Option<PathBuf>,
    },
    Members {
        id: String,
        file: Option<PathBuf>,
    },
    Leave {
        id: String,
    },
}

Variants

List

Retrieve a list of applicable Groups, filtered by authority and target document (document_uri). Also retrieve user’s private Groups.

Fields of List

filters: GroupFiltersfile: Option<PathBuf>

json file to write filtered groups to, writes to stdout if not given

Create

Create a new, private group for the currently-authenticated user.

Fields of Create

name: String

group name

description: Option<String>

group description

file: Option<PathBuf>

write created group to this file in JSON format

Fetch

Fetch a single Group resource.

Fields of Fetch

id: String

unique Group ID

expand: Vec<Expand>

Expand the organization, scope, or both

file: Option<PathBuf>

write group to this file in JSON format

Update

Update a Group resource.

Fields of Update

id: String

unique Group ID

name: Option<String>

new group name

description: Option<String>

new group description

file: Option<PathBuf>

write updated group to this file in JSON format

Members

Fetch a list of all members (users) in a group.

Returned user resource only contains public-facing user data. Authenticated user must have read access to the group. Does not require authentication for reading members of public groups. Returned members are unsorted.

Fields of Members

id: String

unique Group ID

file: Option<PathBuf>

json file to write groups members to, writes to stdout if not given

Leave

Remove yourself from a group.

Fields of Leave

id: String

Trait Implementations

impl Debug for GroupsCommand[src]

impl StructOpt for GroupsCommand[src]

impl StructOptInternal for GroupsCommand[src]

Auto Trait Implementations

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<D> OwoColorize for D

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.